Skip to content

[Bug]: PostgreSQL JSONB column rendering as [object object] on sidebar editor #428

Description

@YashS96

Describe the bug

Bug Description

When querying a table with a native PostgreSQL JSONB column, the values are correctly rendered as string strings in the main data grid. However, selecting a row and checking the right-hand "Edit Row" detail panel shows the literal string [object Object] instead of the formatted JSON string or passing it directly to the Monaco editor.

Expected Behavior

The text field inside the right-hand panel should safely stringify the Javascript object payload returned by the Postgres driver via JSON.stringify(value, null, 2) so that it prints as valid readable JSON text.

Proposed Fix

This layout mismatch happens because the frontend input renderer loops over data cells without checking if typeof value === 'object'. Adding a basic type check format helper before rendering values in the sidebar text-area inputs will prevent this default string coercion.

Image

To Reproduce

Steps to Reproduce

  1. Connect to any PostgreSQL database instance containing a JSONB type column.
  2. Run a query For selecting a Jsonb column.
  3. Click on a row to open the right-hand "Edit Row" drawer menu.
  4. Observe that the field containing the JSON object parses to [object Object].

OS Version

macOS 26.2 (25C56)

Tabularis Version

v0.13.4

Relevant Log Output

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions