Skip to content

Commit

Permalink
fix: image out of sync when deleting tag
Browse files Browse the repository at this point in the history
  • Loading branch information
poohcom1 committed Jun 13, 2024
1 parent e7351e6 commit e384831
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "twitter-art-tags",
"author": "poohcom1",
"description": "",
"version": "2.3.0",
"version": "2.3.1",
"private": true,
"engines": {
"node": ">=18.20.3"
Expand Down
7 changes: 6 additions & 1 deletion src/components/tagGallery/TagGallery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,12 @@ export default class TagGallery {
return;
}
await deleteTag(tag);
this.rerender([RenderKeys.TAGS]);
if (this.selectedTags.includes(tag)) {
this.selectedTags = [];
this.rerender([RenderKeys.TAGS, RenderKeys.IMAGES]);
} else {
this.rerender([RenderKeys.TAGS]);
}
},
},
],
Expand Down

0 comments on commit e384831

Please sign in to comment.