Browse Source

fix(nocodb): return select option in given order

pull/4491/head
Wing-Kam Wong 2 years ago
parent
commit
50ebfe88b0
  1. 6
      packages/nocodb/src/lib/models/SelectOption.ts

6
packages/nocodb/src/lib/models/SelectOption.ts

@ -77,9 +77,9 @@ export default class SelectOption {
return options?.length
? {
options: options.map(
({ created_at, updated_at, ...c }) => new SelectOption(c)
),
options: options
.map(({ created_at, updated_at, ...c }) => new SelectOption(c))
.sort((x, y) => x.order - y.order),
}
: null;
}

Loading…
Cancel
Save