Commit 00638d6e by heheer Committed by GitHub

fix: add dataset tags not update render (#2927)

parent da281ea9
...@@ -222,9 +222,10 @@ const TagManageModal = ({ onClose }: { onClose: () => void }) => { ...@@ -222,9 +222,10 @@ const TagManageModal = ({ onClose }: { onClose: () => void }) => {
onChange={(e) => setNewTag(e.target.value)} onChange={(e) => setNewTag(e.target.value)}
ref={tagInputRef} ref={tagInputRef}
w={'200px'} w={'200px'}
onBlur={() => { onBlur={async () => {
if (newTag && !collectionTags.map((item) => item.tag).includes(newTag)) { if (newTag && !collectionTags.map((item) => item.tag).includes(newTag)) {
onCreateCollectionTag(newTag); await onCreateCollectionTag(newTag);
fetchData(1);
} }
setNewTag(undefined); setNewTag(undefined);
}} }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment