aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
Diffstat (limited to 'modern')
-rw-r--r--modern/src/store/events.js1
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);