diff --git a/packages/builder/src/pages/builder/portal/manage/plugins/_components/DeletePluginModal.svelte b/packages/builder/src/pages/builder/portal/manage/plugins/_components/DeletePluginModal.svelte index 3907c1a0a2..56dfc4ea17 100644 --- a/packages/builder/src/pages/builder/portal/manage/plugins/_components/DeletePluginModal.svelte +++ b/packages/builder/src/pages/builder/portal/manage/plugins/_components/DeletePluginModal.svelte @@ -4,12 +4,12 @@ import { plugins } from "stores/portal" - export let plugin + export let removePlugin async function deletePlugin() { try { - await plugins.deletePlugin(plugin._id, plugin._rev) - notifications.success(`Plugin ${plugin?.name} deleted.`) + await plugins.deletePlugin(removePlugin._id, removePlugin._rev) + notifications.success(`Plugin ${removePlugin?.name} deleted.`) $goto("./") } catch (error) { notifications.error("Error deleting plugin") @@ -26,6 +26,6 @@ showCloseIcon={false} >
- Are you sure you want to delete {plugin?.name} + Are you sure you want to delete {removePlugin?.name} diff --git a/packages/builder/src/pages/builder/portal/manage/plugins/_components/PluginRow.svelte b/packages/builder/src/pages/builder/portal/manage/plugins/_components/PluginRow.svelte index 9c166b8b1b..46f17ac166 100644 --- a/packages/builder/src/pages/builder/portal/manage/plugins/_components/PluginRow.svelte +++ b/packages/builder/src/pages/builder/portal/manage/plugins/_components/PluginRow.svelte @@ -1,24 +1,14 @@