Skip to content

Commit

Permalink
fix: remove double JSON.stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Apr 2, 2023
1 parent eb9e205 commit c0e6213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/website/src/components/ast/PropertyValue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function getSimpleModel(data: unknown): SimpleModel {
if (typeof data === 'string') {
const value = JSON.stringify(data);
return {
value: JSON.stringify(data),
value,
className: styles.propString,
shortValue: value.length > 250 ? value.substring(0, 200) : undefined,
};
Expand Down

0 comments on commit c0e6213

Please sign in to comment.