Skip to content

Commit

Permalink
fix: adding failsafe for metadata deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavs-gutmanis committed Dec 27, 2023
1 parent 9f43f8a commit 97cd641
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@ public function getForForm(?Form $form = null, ?string $type = null): array
$formIntegration = $formIntegrationRecords[$integration->id] ?? null;
if ($formIntegration) {
$metadata = $formIntegration->metadata;
if (\is_string($metadata)) {
$metadata = json_decode($metadata, true);
}

$enabled = $formIntegration->enabled;
}

Expand Down

0 comments on commit 97cd641

Please sign in to comment.