Browse Source

Merge pull request #6838 from nocodb/nc-fix/various-prod

fix: null check for select options
pull/6846/head
Raju Udava 11 months ago committed by GitHub
parent
commit
42adfbcf14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      packages/nocodb/src/services/columns.service.ts

7
packages/nocodb/src/services/columns.service.ts

@ -1214,6 +1214,13 @@ export class ColumnsService {
if (
[UITypes.SingleSelect, UITypes.MultiSelect].includes(colBody.uidt)
) {
if (!colBody.colOptions?.options) {
colBody.colOptions = {
...colBody.colOptions,
options: [],
};
}
const dbDriver = await NcConnectionMgrv2.get(source);
const driverType = dbDriver.clientType();
const optionTitles = colBody.colOptions.options.map((el) =>

Loading…
Cancel
Save