aboutsummaryrefslogtreecommitdiff
path: root/modern/src/store/devices.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/store/devices.js')
-rw-r--r--modern/src/store/devices.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/modern/src/store/devices.js b/modern/src/store/devices.js
index ab4ca9ee..cfe8f162 100644
--- a/modern/src/store/devices.js
+++ b/modern/src/store/devices.js
@@ -24,11 +24,11 @@ const { reducer, actions } = createSlice({
filterByName(state, action) {
return {
...state,
- filteredItems: action.payload ?
- Object.values(state.items).filter((item) => item.name?.toLowerCase().includes(action.payload?.toLowerCase()))
+ filteredItems: action.payload
+ ? Object.values(state.items).filter((item) => item.name?.toLowerCase().includes(action.payload?.toLowerCase()))
: state.items,
- }
- }
+ };
+ },
},
});