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 6fae59a608
commit bdcf717305
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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>