Commit 2e757679 authored by Sarah GP's avatar Sarah GP

Copy data to make immutable for Apollo 3

parent 81857f90
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
return this.pipeline; return this.pipeline;
} }
return unwrapPipelineData(this.pipelineProjectPath, data); return unwrapPipelineData(this.pipelineProjectPath, JSON.parse(JSON.stringify(data)));
}, },
error(err) { error(err) {
this.reportFailure({ type: LOAD_FAILURE, skipSentry: true }); this.reportFailure({ type: LOAD_FAILURE, skipSentry: true });
......
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
return this.currentPipeline; return this.currentPipeline;
} }
return unwrapPipelineData(projectPath, data); return unwrapPipelineData(projectPath, JSON.parse(JSON.stringify(data)));
}, },
result() { result() {
this.loadingPipelineId = null; this.loadingPipelineId = null;
......
...@@ -5,6 +5,7 @@ export const apolloProvider = new VueApollo({ ...@@ -5,6 +5,7 @@ export const apolloProvider = new VueApollo({
defaultClient: createDefaultClient( defaultClient: createDefaultClient(
{}, {},
{ {
assumeImmutableResults: true,
useGet: true, useGet: true,
}, },
), ),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment