Skip to content

Commit 80ab245

Browse files
authored
fix: move field context hide and loading reset calls to execute earlier (baserow#4749)
1 parent e0f8338 commit 80ab245

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

web-frontend/modules/database/components/field/FieldContext.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ export default {
187187
try {
188188
const { data } = await this.$store.dispatch('field/deleteCall', field)
189189
this.$emit('delete')
190+
this.hide()
191+
this.deleteLoading = false
190192
await this.$store.dispatch('field/forceDelete', field)
191193
await this.$store.dispatch('field/forceUpdateFields', {
192194
fields: data.related_fields,
@@ -198,13 +200,14 @@ export default {
198200
} catch (error) {
199201
if (error.response && error.response.status === 404) {
200202
this.$emit('delete')
203+
this.hide()
204+
this.deleteLoading = false
201205
await this.$store.dispatch('field/forceDelete', field)
202206
} else {
203207
notifyIf(error, 'field')
208+
this.deleteLoading = false
204209
}
205210
}
206-
this.hide()
207-
this.deleteLoading = false
208211
},
209212
},
210213
}

0 commit comments

Comments
 (0)