We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f5b0a8 commit 8d7bf23Copy full SHA for 8d7bf23
packages/@vue/cli-ui/src/components/dashboard/Widget.vue
@@ -372,8 +372,12 @@ export default {
372
id: this.widget.id
373
},
374
update: (store, { data: { widgetRemove } }) => {
375
- const data = store.readQuery({ query: WIDGETS })
376
- data.widgets = data.widgets.filter(w => w.id !== this.widget.id)
+ let data = store.readQuery({ query: WIDGETS })
+ // TODO this is a workaround
377
+ // See: https://github.com/apollographql/apollo-client/issues/4031#issuecomment-433668473
378
+ data = {
379
+ widgets: data.widgets.filter(w => w.id !== this.widget.id)
380
+ }
381
store.writeQuery({ query: WIDGETS, data })
382
store.writeFragment({
383
fragment: WIDGET_DEFINITION_FRAGMENT,
0 commit comments