This commit is contained in:
宋辰轩
2023-04-27 10:47:31 +08:00
+6 -2
View File
@@ -159,7 +159,7 @@ class screenModel extends model
}
}
foreach($scheme->componentList as $component)
foreach($scheme->componentList as $index => $component)
{
if(!empty($component->isGroup))
{
@@ -168,10 +168,14 @@ class screenModel extends model
$groupComponent = $this->getLatestChart($groupComponent);
}
}
else
else if($component)
{
$component = $this->getLatestChart($component);
}
else
{
unset($scheme->componentList[$index]);
}
}
return $scheme;