summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/data
diff options
context:
space:
mode:
Diffstat (limited to 'opendc-web/opendc-web-ui/src/data')
-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 cf098c56..ac6cabe5 100644
--- a/opendc-web/opendc-web-ui/src/data/topology.js
+++ b/opendc-web/opendc-web-ui/src/data/topology.js
@@ -49,7 +49,7 @@ export function configureTopologyClient(queryClient, auth) {
},
})
queryClient.setMutationDefaults('deleteTopology', {
- mutationFn: ({ projectId, id }) => deleteTopology(auth, projectId, id),
+ mutationFn: ({ projectId, number }) => deleteTopology(auth, projectId, number),
onSuccess: (result) => {
queryClient.setQueryData(['topologies', result.project.id], (old = []) =>
old.filter((topology) => topology.id !== result.id)