Browse Source

fix: handle null number for non-nn column

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1556/head
Wing-Kam Wong 3 years ago
parent
commit
edf2f41b8b
  1. 2
      packages/nc-gui/components/project/spreadsheet/components/moreActions.vue

2
packages/nc-gui/components/project/spreadsheet/components/moreActions.vue

@ -289,6 +289,8 @@ export default {
} else if (input == 'true' || input == 'yes' || input == 'y') { } else if (input == 'true' || input == 'yes' || input == 'y') {
input = '1' input = '1'
} }
} else if (v.uidt === UITypes.Number) {
if (input == "") input = null
} }
res[col.destCn] = input res[col.destCn] = input
} }

Loading…
Cancel
Save