Browse Source

fix: lookup fails after option update

Re #2767

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/2751/head
mertmit 2 years ago
parent
commit
974d435e19
  1. 10
      packages/nc-gui/components/project/spreadsheet/components/editColumn/CustomSelectOptions.vue

10
packages/nc-gui/components/project/spreadsheet/components/editColumn/CustomSelectOptions.vue

@ -87,6 +87,11 @@ export default {
}, },
}; };
await this.$api.dbTableColumn.create(this.meta.id, selectCol); await this.$api.dbTableColumn.create(this.meta.id, selectCol);
if (this.column.colOptions) {
this.$store
.dispatch('meta/ActLoadMeta', { force: true, id: this.column.fk_model_id })
.then(() => {});
}
this.$toast.success('Select column saved successfully').goAway(3000); this.$toast.success('Select column saved successfully').goAway(3000);
return true; return true;
} }
@ -107,6 +112,11 @@ export default {
}, },
}; };
await this.$api.dbTableColumn.update(this.column.id, selectCol); await this.$api.dbTableColumn.update(this.column.id, selectCol);
if (this.column.colOptions) {
this.$store
.dispatch('meta/ActLoadMeta', { force: true, id: this.column.fk_model_id })
.then(() => {});
}
return true; return true;
} }
return false; return false;

Loading…
Cancel
Save