mirror of
https://github.com/nocobase/nocobase.git
synced 2026-12-06 22:23:41 +08:00
PostgreSQL JSON/JSONB columns are returned by sqlCollection:execute as
parsed objects and arrays. The SQL collection preview tables passed those
values to antd Table as React children, so an array of objects crashed the
render with "Objects are not valid as a React child (found: object with
keys {name, value})" and a single object produced an empty cell.
Serialize non-primitive preview values with JSON.stringify in both the v1
PreviewTable and the v2 SqlPreviewConfigureItem, and add a regression test
for JSON object and array preview columns.