@thecb/components 10.11.2-beta.3 → 10.11.2-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "10.11.2-beta.3",
3
+ "version": "10.11.2-beta.4",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -100,9 +100,9 @@ const EditableList = ({
100
100
  disabled={expiredItem === EXPIRED}
101
101
  >
102
102
  <Text variant="p" color={CHARADE_GREY}>
103
- {renderItem && typeof renderItem === "function"
104
- ? renderItem(item)
105
- : item}
103
+ {!!renderItem &&
104
+ typeof renderItem === "function" &&
105
+ renderItem(item)}
106
106
  </Text>
107
107
  <EditableListItemControls>
108
108
  {item.isPrimary && (