@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
package/src/info/shared.tsx
CHANGED
|
@@ -36,8 +36,9 @@ export const renderMetadataDisplayValues = (row: MetadataDisplayRow, uiLang: str
|
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
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
|