Browse Source

fix: don't save form desc if it is too long

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1679/head
Wing-Kam Wong 3 years ago
parent
commit
a1481daa80
  1. 4
      packages/nc-gui/components/project/spreadsheet/views/formView.vue

4
packages/nc-gui/components/project/spreadsheet/views/formView.vue

@ -688,6 +688,10 @@ export default {
} }
}, },
async updateView() { async updateView() {
if (this.view.subheading.length > 255) {
this.$toast.error('Data too long for Form Description').goAway(3000)
return
}
await this.$api.dbView.formUpdate(this.viewId, this.view) await this.$api.dbView.formUpdate(this.viewId, this.view)
}, },
async loadView() { async loadView() {

Loading…
Cancel
Save