Skip to content

Commit

Permalink
fix(gui): restore delete image button
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 12, 2023
1 parent 689a6a1 commit 68eb8eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions gui/esbuild.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { build } from 'esbuild';
import { createRequire } from 'node:module';
import { join } from 'path';
import alias from 'esbuild-plugin-alias';

const require = createRequire(import.meta.url);
const root = process.cwd();

build({
Expand Down
5 changes: 4 additions & 1 deletion gui/src/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ export function createStateSlices(base: ConfigParams) {
}));
},
removeHistory(image) {
// ?
set((prev) => ({
...prev,
history: prev.history.filter((it) => it.output !== image.output),
}));
},
setLimit(limit) {
set((prev) => ({
Expand Down

0 comments on commit 68eb8eb

Please sign in to comment.