Skip to content

Commit

Permalink
Merge pull request #4800 from Rakasch/issue_4797
Browse files Browse the repository at this point in the history
Update Splitter.vue
  • Loading branch information
tugcekucukoglu authored Nov 15, 2023
2 parents b5f0c40 + 2acb3a3 commit abe7563
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/lib/splitter/Splitter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit abe7563

Please sign in to comment.