File tree Expand file tree Collapse file tree
src/visualBuilder/components Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments