fix(grid): display JSONB values as JSON string in edit mode and detail panel (#152)

String() on objects produces [object Object]. Use JSON.stringify()
consistently wherever cell values are converted to strings.
This commit is contained in:
t8y2
2026-05-08 11:12:05 +08:00
parent 9683826b15
commit fdf65ac5e3
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -51,6 +51,7 @@ export function extractSelection(
function displayValue(value: GridCellValue): string {
if (value === null) return "NULL";
if (typeof value === "boolean") return value ? "true" : "false";
if (typeof value === "object") return JSON.stringify(value);
return String(value);
}