@c-rex/components 0.3.0-build.16 → 0.3.0-build.18

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": "@c-rex/components",
3
- "version": "0.3.0-build.16",
3
+ "version": "0.3.0-build.18",
4
4
  "files": [
5
5
  "src"
6
6
  ],
@@ -247,4 +247,4 @@
247
247
  "plugin:storybook/recommended"
248
248
  ]
249
249
  }
250
- }
250
+ }
@@ -36,8 +36,9 @@ export const renderMetadataDisplayValues = (row: MetadataDisplayRow, uiLang: str
36
36
  );
37
37
  }
38
38
 
39
- if (row.values.length === 1 && isDate(row.values[0])) {
40
- return formatDateToLocale(row.values[0], uiLang);
39
+ const firstValue = row.values[0];
40
+ if (row.values.length === 1 && firstValue && isDate(firstValue)) {
41
+ return formatDateToLocale(firstValue, uiLang);
41
42
  }
42
43
 
43
44
  return row.values.join(", ");
@@ -154,7 +154,7 @@ export const FilterNavbar: FC<FilterNavbarProps> = ({
154
154
 
155
155
  filters.push({
156
156
  key: "restrict",
157
- name: resolveSectionLabelByKey(key),
157
+ name: resolveSectionLabelByKey(key || "restrict"),
158
158
  value: restrictionList.get(item) || item,
159
159
  removable: true,
160
160
  default: value