Skip to content

Commit

Permalink
one less span tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Feb 18, 2022
1 parent 07d2c3b commit 33de410
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const defaultParams: Params = {

export const defaultValueFormatter = (value: unknown) => {
const content = typeof value === 'object' ? JSON.stringify(value) : String(value) ?? '-';
return renderToString(<span>{content}</span>);
return renderToString(<>{content}</>);
};

export const FieldPreviewProvider: FunctionComponent = ({ children }) => {
Expand Down

0 comments on commit 33de410

Please sign in to comment.