Browse Source

fix: small fix for base order

pull/6528/head
mertmit 1 year ago
parent
commit
bf3c3d22a4
  1. 4
      packages/nocodb/src/models/Base.ts

4
packages/nocodb/src/models/Base.ts

@ -193,7 +193,9 @@ export default class Base implements BaseType {
await NocoCache.setList(CacheScope.BASE, [args.projectId], baseDataList);
}
baseDataList.sort((a, b) => (a.order ?? Infinity) - (b.order ?? Infinity));
baseDataList.sort(
(a, b) => (a?.order ?? Infinity) - (b?.order ?? Infinity),
);
return baseDataList?.map((baseData) => {
return this.castType(baseData);

Loading…
Cancel
Save