File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ define([
43
43
} ) ) ;
44
44
} ,
45
45
headerComponent ( { html} ) {
46
+ if ( this . props . recommendations . length === 0 ) {
47
+ return html
48
+ }
46
49
return recommendProductsHtml . getHeaderHtml (
47
50
html ,
48
51
algoliaConfig . recommend . FBTTitle
@@ -76,6 +79,9 @@ define([
76
79
} ) ) ;
77
80
} ,
78
81
headerComponent ( { html} ) {
82
+ if ( this . props . recommendations . length === 0 ) {
83
+ return html ;
84
+ }
79
85
return recommendProductsHtml . getHeaderHtml (
80
86
html ,
81
87
algoliaConfig . recommend . relatedProductsTitle
@@ -116,6 +122,9 @@ define([
116
122
} ) ) ;
117
123
} ,
118
124
headerComponent ( { html} ) {
125
+ if ( this . props . recommendations . length === 0 ) {
126
+ return html ;
127
+ }
119
128
return recommendProductsHtml . getHeaderHtml (
120
129
html ,
121
130
algoliaConfig . recommend . trendingItemsTitle
You can’t perform that action at this time.
0 commit comments