Skip to content

fix: LS26000321: adapted exu to new changes#2792

Merged
lucafoscili merged 1 commit intodevelopfrom
fix-exu-update-after-recent-changes
Feb 4, 2026
Merged

fix: LS26000321: adapted exu to new changes#2792
lucafoscili merged 1 commit intodevelopfrom
fix-exu-update-after-recent-changes

Conversation

@zammarchi-smeup
Copy link
Collaborator

This pull request refactors and improves the row addition and update logic in the KupDataTable component. The main changes include extracting and generalizing row creation logic, making it easier to add new rows based on existing ones, and improving code organization by converting some functions to private class fields.

Refactoring and code organization:

  • Extracted the logic for creating a row with input fields into a new private method #createRowWithInputFields, making it reusable for both new and copied rows.
  • Converted the addRowHandler function into a private class field #addRowHandler and updated its logic to use the new row creation method, allowing it to handle both default and copied rows. [1] [2]
  • Updated the #renderUpdateButtons method to use the new #addRowHandler and improved its structure for clarity.

Feature enhancement:

  • Enhanced the row update logic so that if a row to update does not exist in the original data, it now uses the new #addRowHandler to add it, ensuring consistent behavior for both updates and additions.

@lucafoscili lucafoscili merged commit 0cd9149 into develop Feb 4, 2026
1 check passed
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