Skip to content

Conversation

@avorobiov-unicrew
Copy link
Contributor

@avorobiov-unicrew avorobiov-unicrew commented Sep 11, 2024

It should be reviewed by Lilia first.

@avorobiov-unicrew avorobiov-unicrew added the feature New feature or request label Sep 11, 2024
@avorobiov-unicrew avorobiov-unicrew self-assigned this Sep 11, 2024
@avorobiov-unicrew avorobiov-unicrew force-pushed the fix/DEV-8460-sidebar-reset-all-filters branch from 866cbfb to 0ffb83c Compare September 11, 2024 14:35
.some(([key, value]) => JSON.stringify(this.initialParameters[key]) !== JSON.stringify(value))
}

private restoreDefaultParameters = () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

restoreDefaultParameters should be separate to ensure compatibility with future ModdableDataGrid.

.filter(([_, value]) => value !== undefined
&& value !== ''
&& (!(value instanceof Array) || value.length > 0))
.some(([key, value]) => JSON.stringify(this.initialParameters[key]) !== JSON.stringify(value))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have similar stuff in ModdableDataGrid (see definedParameters) but I am unsure if we need to install @a11d/equals here. Maybe we should somehow make this package global? (like structuredClone polyfill)

@a11delavar a11delavar force-pushed the fix/DEV-8460-sidebar-reset-all-filters branch from 41fabb0 to ed54b75 Compare November 18, 2024 10:36
@a11delavar a11delavar force-pushed the main branch 2 times, most recently from 60da515 to 46819b7 Compare December 16, 2025 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant