Skip to content

Commit

Permalink
fix: add dataset tags not update render (#2927)
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk authored Oct 15, 2024
1 parent da281ea commit 00638d6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,10 @@ const TagManageModal = ({ onClose }: { onClose: () => void }) => {
onChange={(e) => setNewTag(e.target.value)}
ref={tagInputRef}
w={'200px'}
onBlur={() => {
onBlur={async () => {
if (newTag && !collectionTags.map((item) => item.tag).includes(newTag)) {
onCreateCollectionTag(newTag);
await onCreateCollectionTag(newTag);
fetchData(1);
}
setNewTag(undefined);
}}
Expand Down

0 comments on commit 00638d6

Please sign in to comment.