File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ export function CompactHeader(props: {
26
26
} ) {
27
27
const { space, spaces, parent, customization } = props ;
28
28
29
+ const isMultiVariants =
30
+ parent ?. object === 'collection' ||
31
+ ( parent && parent . object === 'site' && spaces . length > 1 ) ;
32
+
29
33
return (
30
34
< div
31
35
className = { tcls (
@@ -54,9 +58,11 @@ export function CompactHeader(props: {
54
58
'justify-self-end' ,
55
59
) }
56
60
>
57
- < div className = { tcls ( 'mb-2' ) } >
58
- < SpacesDropdown space = { space } spaces = { spaces } buttonKind = "bordered" />
59
- </ div >
61
+ { isMultiVariants ? (
62
+ < div className = { tcls ( 'mb-2' ) } >
63
+ < SpacesDropdown space = { space } spaces = { spaces } buttonKind = "bordered" />
64
+ </ div >
65
+ ) : null }
60
66
< React . Suspense fallback = { null } >
61
67
< SearchButton >
62
68
< span className = { tcls ( 'flex-1' ) } >
You can’t perform that action at this time.
0 commit comments