diff --git a/designer/main.js b/designer/main.js index 0e3eea52..1ae7e40b 100644 --- a/designer/main.js +++ b/designer/main.js @@ -749,7 +749,7 @@ app.post('/fogfunction', jsonParser, async function (req, res) { console.log(fogfunction); db.data.fogfunctions[fogfunction.name] = fogfunction; - db.data.topologies[fogfunction.name] = fogfunction.topology; + db.data.topologies[fogfunction.topology.name] = fogfunction.topology; if (fogfunction.intent.hasOwnProperty('id') == false) { var uid = uuid();