Browse Source

fix: null check for select options

pull/6838/head
mertmit 1 year ago
parent
commit
b4c7d67737
  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