fix: add dataset tags not update render (#2927)
This commit is contained in:
parent
da281ea9ec
commit
00638d6ee7
@ -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);
|
||||
}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user