Skip to content

Commit

Permalink
Merge pull request #330 from lara-zeus/fix-export-array
Browse files Browse the repository at this point in the history
fix exported values if they're arrays
  • Loading branch information
atmonshi authored Oct 8, 2024
2 parents 7d2d86e + 89d4516 commit 776f976
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Fields/FieldsContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,10 @@ public function ExportColumn(Field $field): ?ExportColumn
->state(function (Response $record) use ($field) {

$response = $record->fieldsResponses()->where('field_id', $field->id)->first();

if ($response === null) {
return '-';
}
if (Bolt::isJson($response->response)) {
return json_decode($response->response, true);
}

return $response->response;
});
Expand Down

0 comments on commit 776f976

Please sign in to comment.