Skip to content

[APTLSB-1369] fix: stop applying meta defaultValue in cells, forms and modals - #120

Merged
ratnadeep-rajput merged 2 commits into
developfrom
fix/null-value-table-update
Oct 15, 2026
Merged

ratnadeep-rajput merged 2 commits into
developfrom
fix/null-value-table-update

Conversation

@gaurav-gaikwad-12071998

Copy link
Copy Markdown
Contributor

Summary

  • Grid cells (EditableTableCell, FieldDisplay) render exactly what the backend returns. A null or empty value stays an empty cell.
  • getFieldDefaultValue in fieldUtils.ts and standardFieldUtils.ts now returns only the type's empty value (false, 0, [] or '').
    It no longer reads meta.defaultValue or the per-type *Default keys.
    This affects the create and edit record modals and the form view.

Why

Column defaults are now applied by the database. The frontend prefilling or displaying meta.defaultValue
made null cells look like they held a value.

Not changed

The field-settings UI still writes defaultValue into meta, since that is how the value reaches the backend.

Tests

Updated the tests that asserted the old fallback. The full suite passes.

@sonarqubecloud

Copy link
Copy Markdown

@ratnadeep-rajput
ratnadeep-rajput merged commit 9820ea6 into develop Oct 15, 2026
7 checks passed
@ratnadeep-rajput
ratnadeep-rajput deleted the fix/null-value-table-update branch October 15, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants