Skip to content

Commit

Permalink
#451 load grid data anew if not passed
Browse files Browse the repository at this point in the history
  • Loading branch information
klues committed Nov 28, 2024
1 parent c83b708 commit 3121ec8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vue-components/views/gridEditView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@
this.gridData = await this.undoService.doRedo();
this.doingUndoRedo = false;
},
reload(gridData) {
async reload(gridData) {
gridData = gridData || (await dataService.getGrid(this.gridData.id));
this.gridData = JSON.parse(JSON.stringify(gridData));
},
back() {
Expand Down

0 comments on commit 3121ec8

Please sign in to comment.