Skip to content

Commit

Permalink
NGSTACK-672 Properly handle empty fields
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyCupic committed Jan 10, 2023
1 parent adc867d commit 354b7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundle/Command/RefreshEzFieldsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ private function updateNgrmAttribute(array $attribute, Value $value): void

$oldDataText = $attribute['data_text'];

$oldValue = new Value(json_decode($oldDataText, true));
$oldValue = new Value(json_decode($oldDataText, true) ?? []);
$value->variations = $oldValue->variations;

$newDataText = json_encode($value);
Expand Down

0 comments on commit 354b7f7

Please sign in to comment.