From bdd8f48720f7e5b20f020dc4c752a9a770e5fabc Mon Sep 17 00:00:00 2001 From: Pranav C <61551451+pranavxc@users.noreply.github.com> Date: Thu, 29 Jul 2021 19:43:33 +0530 Subject: [PATCH] fix(gui): Show warning if user tried to delete table with relation Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com> --- .../nc-gui/components/project/spreadsheet/rowsXcDataTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue b/packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue index 8143155347..666872f088 100644 --- a/packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue +++ b/packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue @@ -621,7 +621,7 @@ export default { }), checkAndDeleteTable() { if ( - (!this.meta) && ( + !this.meta || ( (this.meta.hasMany && this.meta.hasMany.length) || (this.meta.manyToMany && this.meta.manyToMany.length) || (this.meta.belongsTo && this.meta.belongsTo.length))