Fix chromatic build
This commit is contained in:
@ -115,8 +115,9 @@ export const RecordShowPage = () => {
|
|||||||
avatarType="squared"
|
avatarType="squared"
|
||||||
/>
|
/>
|
||||||
<PropertyBox extraPadding={true}>
|
<PropertyBox extraPadding={true}>
|
||||||
{foundObjectMetadataItem?.fields
|
{foundObjectMetadataItem &&
|
||||||
.toSorted((a, b) =>
|
[...foundObjectMetadataItem.fields]
|
||||||
|
.sort((a, b) =>
|
||||||
DateTime.fromISO(a.createdAt)
|
DateTime.fromISO(a.createdAt)
|
||||||
.diff(DateTime.fromISO(b.createdAt))
|
.diff(DateTime.fromISO(b.createdAt))
|
||||||
.toMillis(),
|
.toMillis(),
|
||||||
|
|||||||
@ -13,11 +13,11 @@ export const visibleTableColumnsScopedSelector = selectorFamily({
|
|||||||
availableTableColumnsScopedState(scopeId),
|
availableTableColumnsScopedState(scopeId),
|
||||||
).map(({ fieldId }) => fieldId);
|
).map(({ fieldId }) => fieldId);
|
||||||
|
|
||||||
return columns
|
return [...columns]
|
||||||
.filter(
|
.filter(
|
||||||
(column) =>
|
(column) =>
|
||||||
column.isVisible && availableColumnKeys.includes(column.fieldId),
|
column.isVisible && availableColumnKeys.includes(column.fieldId),
|
||||||
)
|
)
|
||||||
.toSorted((a, b) => a.position - b.position);
|
.sort((a, b) => a.position - b.position);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user