Skip to content

Commit 5c78d60

Browse files
authored
Merge pull request #292 from BenoitZugmeyer/fix/unexected-exception-on-mount
fix: unexpected exception on grid-layout mount
2 parents 164d3f0 + 6169005 commit 5c78d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/GridLayout.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
},
204204
methods: {
205205
layoutUpdate() {
206-
if (this.layout !== undefined) {
206+
if (this.layout !== undefined && this.originalLayout !== null) {
207207
if (this.layout.length !== this.originalLayout.length) {
208208
// console.log("### LAYOUT UPDATE!", this.layout.length, this.originalLayout.length);
209209

0 commit comments

Comments
 (0)