Skip to content

Commit

Permalink
fix: tag input not showing without pre-existing tags
Browse files Browse the repository at this point in the history
closes #235
  • Loading branch information
drodil committed Nov 5, 2024
1 parent a150c60 commit fda3fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/qeta-react/src/components/PostForm/TagInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const TagInput = (props: {
});
}, [qetaApi, allowCreation, allowedTags]);

if (!availableTags || availableTags.length === 0) {
if (!allowCreate && (!availableTags || availableTags.length === 0)) {
return null;
}

Expand Down

0 comments on commit fda3fd4

Please sign in to comment.