mirror of https://gitee.com/answerdev/answer.git
fix: #961
This commit is contained in:
parent
f83ff0ae6e
commit
3c6880da90
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue