Fix plugin rows not being keyed properly, causing incorrect notifications

This commit is contained in:
Andrew Kingston 2022-09-12 19:50:04 +01:00
parent f40de42478
commit 0077e1000c
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
async function deletePlugin() {
try {
await plugins.deletePlugin(plugin._id)
notifications.success(`Plugin ${plugin?.name} deleted.`)
notifications.success(`Plugin ${plugin?.name} deleted`)
dispatch("deleted")
} catch (error) {
const msg = error?.message ? error.message : JSON.stringify(error)

View File

@ -67,7 +67,7 @@
</div>
{#if filteredPlugins?.length}
<Layout noPadding gap="S">
{#each filteredPlugins as plugin}
{#each filteredPlugins as plugin (plugin._id)}
<PluginRow {plugin} />
{/each}
</Layout>