Skip to content

fix(dataeditor): preserve falsy non-null dropdown cell values - #8059

Open
viliamgonda wants to merge 1 commit into
reflex-dev:mainfrom
viliamgonda:fix/dataeditor-dropdown-falsy-values
Open

viliamgonda wants to merge 1 commit into
reflex-dev:mainfrom
viliamgonda:fix/dataeditor-dropdown-falsy-values

Conversation

@viliamgonda

@viliamgonda viliamgonda commented Nov 29, 2026 •

Copy link
Copy Markdown

Fixes #8057.

Cause

formatCell in packages/reflex-frontend/src/utils/helpers/dataeditor.js checked value ? String(value) : "" for "dropdown" columns, turning falsy non-null values (0, false) into "" even though allowedValues stringifies them ("0", "false").

Fix

Use value == null ? "" : String(value) in the "dropdown" branch, matching the nullish check in the fallback branch, and add unit tests in packages/reflex-frontend/tests/dataeditor.test.js covering 0, false, "", "a", null, and undefined.

View guided diff

@viliamgonda
viliamgonda requested a review from a team as a code owner November 29, 2026 21:08
@FarhanAliRaza FarhanAliRaza added the bug Something isn't working label Nov 29, 2026 — with ChatGPT Codex Connector
@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Fixes dropdown cells that displayed 0 and false as empty.

  • DataEditor dropdown cells keep zero and false visible.

No actionable issues found. Tests were not run.

Reviews (1) · Last reviewed commit: "fix(dataeditor): preserve falsy non-null..." · Reviewed by Greptile

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

View guided diff | Re-trigger cubic

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DataEditor dropdown cells render numeric zero as empty

2 participants