Skip to content

Commit

Permalink
fix: reload related table metadata after relation column delete (#2345)
Browse files Browse the repository at this point in the history
re #2344

Signed-off-by: Pranav C <pranavxc@gmail.com>
  • Loading branch information
pranavxc committed Jun 13, 2022
1 parent c9b5111 commit b1f785b
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -252,6 +252,11 @@ export default {
async deleteColumn() {
try {
await this.$api.dbTableColumn.delete(this.column.id)
if (this.column.uidt === UITypes.LinkToAnotherRecord && this.column.colOptions) {
this.$store.dispatch('meta/ActLoadMeta', { force: true, id: this.column.colOptions.fk_related_model_id }).then(() => {})
}
this.$emit('saved')
this.columnDeleteDialog = false
} catch (e) {
Expand Down

0 comments on commit b1f785b

Please sign in to comment.