Skip to content

Commit

Permalink
Prevent empty string being parsed
Browse files Browse the repository at this point in the history
Signed-off-by: TackAdam <navytackett@hotmail.com>
  • Loading branch information
TackAdam committed Jul 10, 2023
1 parent 665c847 commit 7c80ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/components/custom_panels/helpers/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ export const displayVisualization = (metaData: any, data: any, type: string) =>
return <></>;
}

if (metaData.user_configs !== undefined) {
if (metaData.user_configs !== undefined && metaData.user_configs !== '') {
metaData.user_configs = JSON.parse(metaData.user_configs);
}

Expand Down

0 comments on commit 7c80ce1

Please sign in to comment.