Skip to content

Commit

Permalink
[4360] Fix an issue when opening tables from a form
Browse files Browse the repository at this point in the history
Bug: #4360
Signed-off-by: Florian ROUËNÉ <[email protected]>
  • Loading branch information
frouene committed Jan 3, 2025
1 parent a7c6b22 commit 5a914b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The `start` task used in our turbo configuration is now marked as `persistent` a

=== Bug fixes

https://github.com/eclipse-sirius/sirius-web/issues/4360[#4360] [table] Prevent application crash when opening tables from a form

=== New Features

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const useTableColumnFiltering = (

if (!enableColumnFilters) {
return {
columnFilters: undefined,
columnFilters: [],
setColumnFilters: undefined,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ import { MRT_ColumnFiltersState } from 'material-react-table';
export type ColumnFilterSetter = (
columnFilters: MRT_ColumnFiltersState | ((prevState: MRT_ColumnFiltersState) => MRT_ColumnFiltersState)
) => void;

export interface UseTableColumnFilteringValue {
columnFilters: MRT_ColumnFiltersState | undefined;
columnFilters: MRT_ColumnFiltersState;
setColumnFilters: ColumnFilterSetter | undefined;
}

Expand Down

0 comments on commit 5a914b0

Please sign in to comment.