Skip to content

Commit

Permalink
fix: Re-apply rows after load to reflect changes upon refresh
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
  • Loading branch information
elzody committed Jun 24, 2024
1 parent 77dd687 commit d124ed1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/views/ContentReferenceWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,14 @@ export default {
return this.rows.find(row => row.id === rowId)
},
async loadRows() {
await this.$store.dispatch('loadRowsFromBE', { tableId: this.richObject.id })
const res = await this.$store.dispatch(
'loadRowsFromBE',
{ tableId: this.richObject.id },
)
if (res) {
this.rows = Object.values(this.$store.data.state.rows).at(0)
}
},
},
}
Expand Down

0 comments on commit d124ed1

Please sign in to comment.