Skip to content

Commit

Permalink
fix: user cant remove tags from any goal
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisVorop committed Oct 3, 2023
1 parent ac52051 commit 5538add
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/GoalPage/GoalPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ export const GoalPage = ({ user, ssrTime, params: { id } }: ExternalPageProps<{
<IssueMeta title={tr('Tags')}>
{goal.tags?.map((tag) => (
<Tag key={tag.id}>
<TagCleanButton onClick={onGoalTagRemove(tag)} />
{nullable(goal._isEditable, () => (
<TagCleanButton onClick={onGoalTagRemove(tag)} />
))}
{tag.title}
</Tag>
))}
Expand Down

0 comments on commit 5538add

Please sign in to comment.