Fix plugin rows not being keyed properly, causing incorrect notifications
This commit is contained in:
parent
6fae59a608
commit
bdcf717305
|
@ -10,7 +10,7 @@
|
||||||
async function deletePlugin() {
|
async function deletePlugin() {
|
||||||
try {
|
try {
|
||||||
await plugins.deletePlugin(plugin._id)
|
await plugins.deletePlugin(plugin._id)
|
||||||
notifications.success(`Plugin ${plugin?.name} deleted.`)
|
notifications.success(`Plugin ${plugin?.name} deleted`)
|
||||||
dispatch("deleted")
|
dispatch("deleted")
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const msg = error?.message ? error.message : JSON.stringify(error)
|
const msg = error?.message ? error.message : JSON.stringify(error)
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
</div>
|
</div>
|
||||||
{#if filteredPlugins?.length}
|
{#if filteredPlugins?.length}
|
||||||
<Layout noPadding gap="S">
|
<Layout noPadding gap="S">
|
||||||
{#each filteredPlugins as plugin}
|
{#each filteredPlugins as plugin (plugin._id)}
|
||||||
<PluginRow {plugin} />
|
<PluginRow {plugin} />
|
||||||
{/each}
|
{/each}
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
Loading…
Reference in New Issue