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 authored and sbegaudeau committed Jan 14, 2025
1 parent e94ae78 commit 5b0440c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ This may have some consequences for downstream applications which are embedding
- https://github.com/eclipse-sirius/sirius-web/issues/4311[#4311] [table] Fix typos in table variables
- https://github.com/eclipse-sirius/sirius-web/issues/3578[#3578] [diagram] Fix tooltip and menu visibility in a full screen mode.
See https://github.com/mui/material-ui/issues/15618[this link] for additional details.
- 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
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2024 CEA LIST.
* Copyright (c) 2024, 2025 CEA LIST.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
Expand Down 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
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2024 CEA LIST.
* Copyright (c) 2024, 2025 CEA LIST.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
Expand All @@ -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 5b0440c

Please sign in to comment.