diff --git a/packages/builder/src/pages/builder/portal/manage/plugins/_components/AddPluginModal.svelte b/packages/builder/src/pages/builder/portal/manage/plugins/_components/AddPluginModal.svelte index 1fce6746ad..7149136dec 100644 --- a/packages/builder/src/pages/builder/portal/manage/plugins/_components/AddPluginModal.svelte +++ b/packages/builder/src/pages/builder/portal/manage/plugins/_components/AddPluginModal.svelte @@ -14,13 +14,11 @@ NPM: ["URL"], Github: ["Github Token", "URL"], URL: ["Headers", "URL"], - File: ["Path", "Headers"], - Upload: ["Upload"], + "File Upload": ["File Upload"], } let file let sourceValue = "NPM" let typeValue = "Datasource" - let nameValue let dynamicValues = {} let verificationSuccessful = false @@ -30,7 +28,7 @@ const url = dynamicValues["URL"] switch (source) { - case "upload": + case "file upload": if (file) { await plugins.uploadPlugin(file, sourceValue) } @@ -39,7 +37,6 @@ await plugins.createPlugin( typeValue, source, - nameValue, url, dynamicValues["Github Token"] ) @@ -48,13 +45,12 @@ await plugins.createPlugin( typeValue, source, - nameValue, url, dynamicValues["Headers"] ) break case "npm": - await plugins.createPlugin(typeValue, source, nameValue, url) + await plugins.createPlugin(typeValue, source, url) break } } @@ -86,16 +82,12 @@ -