Skip to content

Commit f77e029

Browse files
committed
do not show when missing
1 parent ebdd5cb commit f77e029

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

apps/frontend/src/components/launches/tags.component.tsx

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -180,22 +180,24 @@ export const TagsComponent: FC<{
180180
{...option}
181181
>
182182
{findTag && (
183-
<input
184-
type="checkbox"
185-
checked={
186-
tagValue.findIndex(
187-
(f) => f.label === option.option.label
188-
) > -1
189-
}
190-
readOnly
191-
/>
183+
<>
184+
<input
185+
type="checkbox"
186+
checked={
187+
tagValue.findIndex(
188+
(f) => f.label === option.option.label
189+
) > -1
190+
}
191+
readOnly
192+
/>
193+
<div
194+
className="size-3 rounded-full flex-shrink-0"
195+
style={{
196+
backgroundColor: findTag?.color || '#942828',
197+
}}
198+
/>
199+
</>
192200
)}
193-
<div
194-
className="size-3 rounded-full flex-shrink-0"
195-
style={{
196-
backgroundColor: findTag?.color || '#942828',
197-
}}
198-
/>
199201
{option.option.label}
200202
<div className="flex items-center flex-grow flex-row-reverse">
201203
{findTag && (

0 commit comments

Comments
 (0)