summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/data/topology.js
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-web/opendc-web-ui/src/data/topology.js')
-rw-r--r--opendc-web/opendc-web-ui/src/data/topology.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-web/opendc-web-ui/src/data/topology.js b/opendc-web/opendc-web-ui/src/data/topology.js
index bd4d1e4d..83abb6aa 100644
--- a/opendc-web/opendc-web-ui/src/data/topology.js
+++ b/opendc-web/opendc-web-ui/src/data/topology.js
@@ -46,7 +46,7 @@ export function configureTopologyClient(queryClient, auth) {
})
queryClient.setMutationDefaults('updateTopology', {
mutationFn: (data) => updateTopology(auth, data),
- onSuccess: async (result) => queryClient.setQueryData(['topologies', result._id], result),
+ onSuccess: (result) => queryClient.setQueryData(['topologies', result._id], result),
})
queryClient.setMutationDefaults('deleteTopology', {
mutationFn: (id) => deleteTopology(auth, id),