Skip to content

Commit 3936dfc

Browse files
author
Guillaume Chau
committed
fix(tasks): parameters
1 parent d24c7bb commit 3936dfc

File tree

1 file changed

+2
-2
lines changed
  • packages/@vue/cli-ui/apollo-server/connectors

1 file changed

+2
-2
lines changed

packages/@vue/cli-ui/apollo-server/connectors/tasks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function getSavedData (id, context) {
137137
id
138138
}).value()
139139
// Clone
140-
data = JSON.parse(JSON.stringify(data))
140+
if (data != null) data = JSON.parse(JSON.stringify(data))
141141
return data
142142
}
143143

@@ -149,7 +149,7 @@ function updateSavedData (data, context) {
149149
}
150150
}
151151

152-
async function getPrompts (id, context) {
152+
function getPrompts (id, context) {
153153
return restoreParameters({ id }, context)
154154
}
155155

0 commit comments

Comments
 (0)