Skip to content

Commit

Permalink
Update condition to handle null values in UpdateEdgeAgentConfigForNode (
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGodbehere authored Aug 23, 2023
1 parent 929df28 commit 9c463bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ public function execute(Node $node)
'deadBand' => $v['Deadband'] ?? null,
'tooltip' => $v['Tooltip'] ?? null,
'docs' => $v['Documentation'] ?? null,
'recordToDB' => $v['Record_To_Historian'],
'recordToDB' => $v['Record_To_Historian'] ?? false,
], static function ($val) {
return $val;
return $val !== null;
}
);
} elseif ($key === 'Schema_UUID') {
Expand Down

0 comments on commit 9c463bc

Please sign in to comment.