Skip to content

Commit

Permalink
fix: update total when removed
Browse files Browse the repository at this point in the history
  • Loading branch information
newObjectccc committed Mar 27, 2024
1 parent 68a0e87 commit 68e06da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const Main: React.FC<MainProps> = () => {
framesStackElemRef.current?.removeChild(
framesStackElemRef.current?.children[curImageIdx]
);
setTotalFrames((prev) => prev - 1);
};

const onImgEdit = () => {};
Expand Down

0 comments on commit 68e06da

Please sign in to comment.