Skip to content

fix: LS26000366: no error when adding formula column#2814

Merged
pasere-smeup merged 1 commit intodevelopfrom
fix-column-with-formula
Mar 2, 2026
Merged

fix: LS26000366: no error when adding formula column#2814
pasere-smeup merged 1 commit intodevelopfrom
fix-column-with-formula

Conversation

@zammarchi-smeup
Copy link
Collaborator

This pull request introduces improvements to how new columns, especially those resulting from mathematical operations, are handled and displayed in the data table component. The main focus is on ensuring that newly added columns are always visible and that their metadata is correctly initialized, even when optional values are missing.
This solves an issue where adding 2 columns with the same formula generated errors

Enhancements to new column handling:

  • Ensures that the obj property in new columns is always initialized, defaulting to an empty object structure if not provided.
  • Sets the visible property to true for new columns created from mathematical operations, guaranteeing they appear by default.

Improvements to visible column management:

  • Refines the logic in KupDataTable to better handle the insertion and display of new columns, especially when determining which columns should be visible after a new column is added. This prevents duplicate columns and ensures correct updates to the visibleColumns array.

Copy link
Collaborator

@pasere-smeup pasere-smeup left a comment

Choose a reason for hiding this comment

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

ok

@pasere-smeup pasere-smeup merged commit 549d7ab into develop Mar 2, 2026
1 check passed
@pasere-smeup pasere-smeup deleted the fix-column-with-formula branch March 2, 2026 09:04
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