Skip to content

Commit

Permalink
fix(gui): remove images from history beyond limit (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Mar 19, 2023
1 parent 3198e68 commit ba07671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/src/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export function createStateSlices(server: ServerParams) {
retry,
},
...prev.history,
],
].slice(0, prev.limit + DEFAULT_HISTORY.scrollback),
}));
},
removeHistory(image) {
Expand Down

0 comments on commit ba07671

Please sign in to comment.