Skip to content

Commit

Permalink
fixed bug with filter reset
Browse files Browse the repository at this point in the history
  • Loading branch information
bigabig committed Oct 28, 2024
1 parent 2883455 commit 017e984
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/components/FilterDialog/filterSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export interface FilterState {
filter: Record<string, MyFilter>;
editableFilter: MyFilter;
defaultFilterExpression: MyFilterExpression;
column2Info: Record<string, ColumnInfo>;
// app state:
column2Info: Record<string, ColumnInfo>;
expertMode: boolean;
}

Expand Down Expand Up @@ -51,8 +51,6 @@ export const resetProjectFilterState = (state: Draft<FilterState>, defaultFilter
state.filter = initialState.filter;
state.editableFilter = initialState.editableFilter;
state.defaultFilterExpression = initialState.defaultFilterExpression;
state.column2Info = initialState.column2Info;
state.expertMode = initialState.expertMode;
};

export const getOrCreateFilter = (state: FilterState, filterId: string, filter?: MyFilter): MyFilter => {
Expand Down

0 comments on commit 017e984

Please sign in to comment.