Fix record modal closing by itself if quickly closing and opening a new modal in under 300ms

This commit is contained in:
Jože Fortun
2023-10-17 15:41:23 +02:00
parent d2eca44325
commit a7dd0743ae
@@ -166,14 +166,16 @@ export default {
this.setDefaultValues()
setTimeout(() => {
this.$router.replace({
query: {
...this.$route.query,
recordID: undefined,
moduleID: undefined,
recordPageID: undefined,
},
})
if (this.recordID === undefined && this.page === undefined) {
this.$router.replace({
query: {
...this.$route.query,
recordID: undefined,
moduleID: undefined,
recordPageID: undefined,
},
})
}
}, 300)
},