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