mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-23 11:36:21 +00:00
fix(grid): display JSONB values as JSON string instead of [object Object]
Closes #100
This commit is contained in:
@@ -608,6 +608,7 @@ async function applyWhereSearch() {
|
||||
function formatCell(value: CellValue): 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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user