mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
fix: add dataset tags not update render (#2927)
This commit is contained in:
@@ -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);
|
||||
}}
|
||||
|
Reference in New Issue
Block a user