-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend: Fix TypeError in cluster config comparison
- Resolved TypeError: "Cannot delete property 'teststateless' of #<Object>" occurring in processClusterComparison function - Implemented isClusterConfigDifferent function to compare configs without modifying objects, preventing property deletion errors - Added mergeClusterConfigs function to properly handle stateless clusters and useToken property - Updated Layout component to use new comparison and merging logic - Prevented unnecessary reloads due to useToken changes while maintaining correct state in Redux store This fix addresses the error occurring in Layout.tsx and index.ts when processing cluster configurations, ensuring proper handling of stateless clusters without attempting to delete properties from immutable objects. Co-authored-by: Kautilya Tripathi <[email protected]> Signed-off-by: Joaquim Rocha <[email protected]> Signed-off-by: Kautilya Tripathi <[email protected]>
- Loading branch information
Showing
2 changed files
with
66 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters