fixed bug
This commit is contained in:
parent
900dbe3b6c
commit
b8f24d0104
@ -19,7 +19,7 @@ function handleTriggerExecutionResult($result, $stdout, $stderr, $originalRow, $
|
||||
$newRowValue = json_decode($stdout, true);
|
||||
|
||||
// Ignore the hydrate columns
|
||||
$newRowValue = array_filter($newRowValue, fn($k) => !str_ends_with($k, '_ref'), ARRAY_FILTER_USE_KEY);
|
||||
$newRowValue = array_filter($newRowValue ?? [], fn($k) => !str_ends_with($k, '_ref'), ARRAY_FILTER_USE_KEY);
|
||||
|
||||
if ($newRowValue === null) {
|
||||
updateTriggerError($tableName, 'Invalid JSON output from sandboxed execution.');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user