Skip to content

Commit 8478bbc

Browse files
committed
fix: missed rendering case
1 parent bfd84b7 commit 8478bbc

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

src/visualBuilder/components/fieldLabelWrapper.tsx

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -314,20 +314,23 @@ function FieldLabelWrapperComponent(
314314
<CaretRightIcon />
315315
</div> : null
316316
}
317-
{!dataLoading && !error && <ContentTypeIcon />}
318-
{currentField.contentTypeName && !dataLoading && !error ? (
319-
<div
320-
className={classNames(
321-
"visual-builder__focused-toolbar__text",
322-
visualBuilderStyles()[
323-
"visual-builder__focused-toolbar__text"
324-
]
325-
)}
326-
data-testid="visual-builder__focused-toolbar__ct-name"
327-
>
328-
{currentField.contentTypeName + " : "}
329-
</div>
330-
) : null}
317+
{
318+
currentField.contentTypeName && !dataLoading && !error ?
319+
<>
320+
<ContentTypeIcon />
321+
<div
322+
className={classNames(
323+
"visual-builder__focused-toolbar__text",
324+
visualBuilderStyles()[
325+
"visual-builder__focused-toolbar__text"
326+
]
327+
)}
328+
data-testid="visual-builder__focused-toolbar__ct-name"
329+
>
330+
{currentField.contentTypeName + " : "}
331+
</div>
332+
</> : null
333+
}
331334
{currentField.prefixIcon ? (
332335
<div
333336
className={classNames(

0 commit comments

Comments
 (0)