Merge pull request #4800 from Rakasch/issue_4797

Update Splitter.vue
pull/4823/head
Tuğçe Küçükoğlu 2023-11-15 11:31:49 +03:00 committed by GitHub
commit abe75636c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -331,7 +331,9 @@ export default {
}
},
saveState() {
this.getStorage().setItem(this.stateKey, JSON.stringify(this.panelSizes));
if(ObjectUtils.isArray(this.panelSizes)) {
this.getStorage().setItem(this.stateKey, JSON.stringify(this.panelSizes));
}
},
restoreState() {
const storage = this.getStorage();