summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/api/topologies.js
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-07-07 11:46:57 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-07-07 11:46:57 +0200
commit1ce8bf170cda2afab334cd330325cd4fbb97dab4 (patch)
tree59911227f622a99844645b3276e73181777ab209 /opendc-web/opendc-web-ui/src/api/topologies.js
parentdfd2ded56780995cec6d91af37443b710d4ddb3b (diff)
ui: Split App container into separate components
This change splits the App container into separate pages, as a starting point for removing much of the unnecessary state from Redux.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/api/topologies.js')
-rw-r--r--opendc-web/opendc-web-ui/src/api/topologies.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-web/opendc-web-ui/src/api/topologies.js b/opendc-web/opendc-web-ui/src/api/topologies.js
index 802be4bb..40685094 100644
--- a/opendc-web/opendc-web-ui/src/api/topologies.js
+++ b/opendc-web/opendc-web-ui/src/api/topologies.js
@@ -31,7 +31,7 @@ export function getTopology(auth, topologyId) {
}
export function updateTopology(auth, topology) {
- const { _id, ...data } = topology;
+ const { _id, ...data } = topology
return request(auth, `topologies/${topology._id}`, 'PUT', { topology: data })
}