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 a92bd1b commit b5c5e71Copy full SHA for b5c5e71
packages/@vue/cli-ui/src/components/ProjectNav.vue
@@ -42,6 +42,11 @@ export default {
42
document: VIEW_ADDED,
43
updateQuery: (previousResult, { subscriptionData }) => {
44
const view = subscriptionData.data.viewAdded
45
+ if (!previousResult.views) {
46
+ return {
47
+ views: [ view ]
48
+ }
49
50
if (previousResult.views.find(r => r.id === view.id)) return previousResult
51
return {
52
views: [
0 commit comments