Browse Source

Merge pull request #4491 from nocodb/fix/select-option-order

fix(nocodb): return select option in given order
pull/4497/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
7f637afa03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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