Skip to content

Commit 4c9d97f

Browse files
committed
fix: make filtersWarningsOnly optional in setConfig action to fix TypeScript errors
Signed-off-by: zyzzmohit <mohitray949@gmail.com>
1 parent fb0ec26 commit 4c9d97f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

frontend/src/components/project/NewProjectPopup.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const makeStore = () => {
4141
'cluster-a': { name: 'cluster-a' },
4242
'cluster-b': { name: 'cluster-b' },
4343
} as any,
44+
filtersWarningsOnly: true,
4445
settings: {
4546
tableRowsPerPageOptions: [15, 25, 50],
4647
timezone: 'UTC',

frontend/src/components/project/ProjectCreateFromYaml.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const makeStore = () => {
4040
'cluster-a': { name: 'cluster-a' },
4141
'cluster-b': { name: 'cluster-b' },
4242
} as any,
43+
filtersWarningsOnly: true,
4344
settings: {
4445
tableRowsPerPageOptions: [15, 25, 50],
4546
timezone: 'UTC',

frontend/src/redux/configSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const configSlice = createSlice({
9696
*/
9797
setConfig(
9898
state,
99-
action: PayloadAction<{ clusters: ConfigState['clusters']; filtersWarningsOnly: boolean }>
99+
action: PayloadAction<{ clusters: ConfigState['clusters']; filtersWarningsOnly?: boolean }>
100100
) {
101101
state.clusters = action.payload.clusters;
102102
if (action.payload.filtersWarningsOnly !== undefined) {

0 commit comments

Comments
 (0)