Browse Source

refactor: keep `pk` checked if uidt is `ID`

re #641

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/948/head
Pranav C 3 years ago
parent
commit
b6c7095928
  1. 4
      packages/nc-gui/components/project/spreadsheet/components/editColumn.vue

4
packages/nc-gui/components/project/spreadsheet/components/editColumn.vue

@ -607,7 +607,9 @@ export default {
}, },
onDataTypeChange() { onDataTypeChange() {
this.newColumn.rqd = false this.newColumn.rqd = false
this.newColumn.pk = false if (this.newColumn.uidt !== UITypes.ID) {
this.newColumn.pk = false
}
this.newColumn.ai = false this.newColumn.ai = false
this.newColumn.cdf = null this.newColumn.cdf = null
this.newColumn.un = false this.newColumn.un = false

Loading…
Cancel
Save