@financial-times/n-myft-ui 25.0.0-beta.2 → 25.0.0-beta.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -14,11 +14,19 @@ export default function ConceptList ({ flags, concepts, contentType, conceptList
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
|
17
|
+
const shouldDisplay = () => {
|
18
|
+
if(myFtApi && myFtApiWrite && Array.isArray(concepts) && concepts.length) {
|
19
|
+
return true
|
20
|
+
}
|
21
|
+
|
22
|
+
return false;
|
23
|
+
}
|
24
|
+
|
17
25
|
|
18
26
|
return (
|
19
27
|
|
20
28
|
<Fragment>
|
21
|
-
{(
|
29
|
+
{shouldDisplay() &&
|
22
30
|
<div
|
23
31
|
className='concept-list'
|
24
32
|
{...generateTrackableProps(trackable, 'concept-list')}>
|
package/dist/bundles/bundle.js
CHANGED
@@ -2827,10 +2827,18 @@ function ConceptList({ flags, concepts, contentType, conceptListTitle, trackable
|
|
2827
2827
|
};
|
2828
2828
|
};
|
2829
2829
|
|
2830
|
+
const shouldDisplay = () => {
|
2831
|
+
if (myFtApi && myFtApiWrite && Array.isArray(concepts) && concepts.length) {
|
2832
|
+
return true;
|
2833
|
+
}
|
2834
|
+
|
2835
|
+
return false;
|
2836
|
+
};
|
2837
|
+
|
2830
2838
|
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
|
2831
2839
|
__WEBPACK_IMPORTED_MODULE_0_react__["Fragment"],
|
2832
2840
|
null,
|
2833
|
-
|
2841
|
+
shouldDisplay() && __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
|
2834
2842
|
'div',
|
2835
2843
|
_extends({
|
2836
2844
|
className: 'concept-list'
|
package/package.json
CHANGED