Browse Source

Merge pull request #1632 from mertmit/fix-empty-update

fix: disable update call if column undefined
pull/1640/head
navi 3 years ago committed by GitHub
parent
commit
f0d45a2b7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue

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

@ -1100,7 +1100,7 @@ export default {
// return // return
// } // }
// return if there is no change // return if there is no change
if (oldRow[column.title] === rowObj[column.title] && ((lastSave || rowObj[column.title]) === rowObj[column.title])) { if (!column || (oldRow[column.title] === rowObj[column.title] && ((lastSave || rowObj[column.title]) === rowObj[column.title]))) {
return return
} }
if (saved) { this.$set(this.data[row], 'lastSave', oldRow[column.title]) } if (saved) { this.$set(this.data[row], 'lastSave', oldRow[column.title]) }

Loading…
Cancel
Save