diff --git a/frontend/web/components/tags/TagContent.tsx b/frontend/web/components/tags/TagContent.tsx
index 106b56a25568..e2d0b2bddee7 100644
--- a/frontend/web/components/tags/TagContent.tsx
+++ b/frontend/web/components/tags/TagContent.tsx
@@ -20,7 +20,12 @@ function escapeHTML(unsafe: string) {
)
}
-const renderIcon = (tagType: string, tagColor: string, tagLabel: string) => {
+const renderIcon = (
+ tagType: string,
+ tagColor: string,
+ tagLabel: string,
+ isPermanent: boolean,
+) => {
switch (tagType) {
case 'STALE':
return (
@@ -48,13 +53,13 @@ const renderIcon = (tagType: string, tagColor: string, tagLabel: string) => {
return
}
default:
- return (
+ return isPermanent ? (
- )
+ ) : null
}
}
@@ -125,7 +130,7 @@ const TagContent: FC = ({ tag }) => {
})}
>
{tagLabel}
- {renderIcon(tag.type!, tag.color!, tag.label!)}
+ {renderIcon(tag.type!, tag.color!, tag.label!, tag.is_permanent)}
}
>