kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix action to remove filter
rodzic
fa47e347fc
commit
0d76b7d2e0
|
@ -133,7 +133,7 @@ const search_filter = createSlice({
|
||||||
* Removes a filter.
|
* Removes a filter.
|
||||||
*/
|
*/
|
||||||
removeFilter: (state, action: PayloadAction<string>) => {
|
removeFilter: (state, action: PayloadAction<string>) => {
|
||||||
return state.filter((filter) => filter.name !== action.payload);
|
return state.filter((filter) => filter.name.toLowerCase() !== action.payload);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Ładowanie…
Reference in New Issue