Skip to content

Commit

Permalink
fix: STAN (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig authored Sep 16, 2024
1 parent 166e57c commit afb6f6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function process($object, $newValue, $args, $context, ResolveInfo $info)
}
$concrete = Concrete::getById($element->getId());
$item = new ObjectMetadata($fieldName, $columns ?? [], $concrete);
if (isset($data) === true) {
if ($data !== []) {
$item->setData($data);
}
$result[] = $item;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function process($object, $newValue, $args, $context, ResolveInfo $info)
}
}
$item = new ElementMetadata($fieldName, $columns ?? [], $element);
if (isset($data) === true) {
if ($data !== []) {
$item->setData($data);
}
$result[] = $item;
Expand Down

0 comments on commit afb6f6f

Please sign in to comment.