Hide alterations modal on load if no alterations exist

This commit is contained in:
Jože Fortun
2023-10-26 17:09:59 +02:00
committed by Tomaž Jerman
parent 0d19f76f2d
commit bf154e44c5
@@ -289,6 +289,10 @@ export default {
return this.$SystemAPI.dalSchemaAlterationList({ batchID }).then(({ set }) => {
this.alterations = set
if (!this.alteration.length) {
this.$emit('hide')
}
}).catch(this.toastErrorHandler(this.$t('notification:module.schemaAlterations.load.error')))
.finally(() => {
this.loading = false