Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: #961

robin3c6880da90b2
diff --git a/ui/src/components/TagSelector/index.tsx b/ui/src/components/TagSelector/index.tsx
index ad1096ae..999ddb58 100644
--- a/ui/src/components/TagSelector/index.tsx
+++ b/ui/src/components/TagSelector/index.tsx
@@ -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]);