Commit 7d018487 authored by Phil Hughes's avatar Phil Hughes Committed by Luke Duncalfe

Use returned image URL

parent 477a5625
......@@ -15,13 +15,9 @@ const defaultClient = createDefaultClient({
variables: { fullPath: projectPath, iid: issueIid },
});
return {
...result.project.issue.designs.designs.edges.find(
({ node }) => parseInt(node.id, 10) === id,
).node,
// TODO: Remove this once backend exposes raw images
image: 'http://via.placeholder.com/1000',
};
return result.project.issue.designs.designs.edges.find(
({ node }) => parseInt(node.id, 10) === id,
).node;
},
},
});
......
......@@ -19,12 +19,7 @@ export default {
iid: this.issueIid,
};
},
update: data =>
data.project.issue.designs.designs.edges.map(({ node }) => ({
...node,
// TODO: Remove this once backend exposes raw images
image: 'http://via.placeholder.com/1000',
})),
update: data => data.project.issue.designs.designs.edges.map(({ node }) => node),
error() {
this.error = 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