3
0

Fix page not rendering when using add in magnified record list

This commit is contained in:
Jože Fortun
2023-09-26 12:42:22 +02:00
parent a052906a4f
commit 55dfcb8ab7

View File

@@ -125,17 +125,14 @@ export default {
return meta.hidden ? { i, x: 0, y: 0, w: 0, h: 0 } : { i, x, y, w, h }
})
// Only use next tick if previous layout exists and not editing
if (this.layout.length && !this.editable) {
this.layout = []
// Next tick is important, otherwise it can lead to overlapping blocks
this.$nextTick(() => {
this.layout = blocks
})
} else {
this.layout = blocks
}
// Next tick is important, otherwise it can lead to overlapping blocks
this.$nextTick(() => {
this.layout = blocks
})
},
},
},