diff --git a/api.js b/api.js index 3b76246..f8763a2 100644 --- a/api.js +++ b/api.js @@ -697,6 +697,8 @@ async function set_up_api_server(app) { // data: for inline extra JS. if(req.body.chainload_uri) { user.additionalJS = req.body.chainload_uri; + }else if (req.body.chainload_uri === ""){ + user.additionalJS = null; } if(req.body.send_alert_emails !== undefined) { diff --git a/front-end/src/layout/dashboard/DashboardLayout.vue b/front-end/src/layout/dashboard/DashboardLayout.vue index ff29c1c..a580231 100644 --- a/front-end/src/layout/dashboard/DashboardLayout.vue +++ b/front-end/src/layout/dashboard/DashboardLayout.vue @@ -20,7 +20,7 @@