diff options
Diffstat (limited to 'modern/src/store/events.js')
-rw-r--r-- | modern/src/store/events.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modern/src/store/events.js b/modern/src/store/events.js index d4f313c0..35e7081e 100644 --- a/modern/src/store/events.js +++ b/modern/src/store/events.js @@ -8,6 +8,7 @@ const { reducer, actions } = createSlice({ reducers: { add(state, action) { state.items.unshift(...action.payload); + state.items.splice(50); }, delete(state, action) { state.items = state.items.filter((item) => item.id !== action.payload.id); |