This commit is contained in:
robin 2022-09-29 18:34:42 +08:00
parent f83ff0ae6e
commit 3c6880da90
1 changed files with 1 additions and 4 deletions

View File

@ -102,10 +102,7 @@ const TagSelector: FC<IProps> = ({
}
queryTags(tag).then((res) => {
if (!res) {
return;
}
const tagArray: Type.Tag[] = filterTags(res);
const tagArray: Type.Tag[] = filterTags(res || []);
setTags(tagArray);
});
}, [tag]);