* Fix bug of use array key for an object.

This commit is contained in:
songchenxuan
2024-01-18 10:29:12 +08:00
parent 4f86ee0491
commit 1e3771540f
+1 -1
View File
@@ -297,7 +297,7 @@ class screenModel extends model
if(count($oldFilters) != count($latestFilters)) $filterChanged = true;
foreach($oldFilters as $index => $oldFilter)
{
if($oldFilter['field'] != $latestFilters[$index]['field']) $filterChanged = true;
if($oldFilter->field != $latestFilters[$index]->field) $filterChanged = true;
}
if($filterChanged) $component->chartConfig->filters = $latestFilters;