Wrap values in String() - makes booleans show (they didn't otherwise!)

This commit is contained in:
2023-04-20 10:52:33 -05:00
parent 1c0535cdc0
commit e64385c271

View File

@ -107,7 +107,7 @@ function DataBagPreview({data, json}: Props): JSX.Element
childIsObject && openPreviewDivs.has(divId) && <Box>{previewObject(object[key], `${path}.${key}`)}</Box>
}
{
!childIsObject && <span className="fieldValue">{object[key]}</span>
!childIsObject && <span className="fieldValue">{String(object[key])}</span>
}
</Box>
</React.Fragment>