Skip to content

Commit

Permalink
Fix duplicate iteration key by shifting to template in toolsection
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Oct 24, 2023
1 parent 662a206 commit a7e01dd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions client/src/components/Panels/Common/ToolSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,10 @@ function toggleMenu(nextState = !opened.value) {
</div>
<transition name="slide">
<div v-if="opened" data-description="opened tool panel section">
<template v-for="[key, el] in sortedElements">
<ToolPanelLabel
v-if="category.text || el.model_class === 'ToolSectionLabel'"
:key="key"
:definition="el" />
<template v-for="[key, el] in sortedElements" :key="key">
<ToolPanelLabel v-if="category.text || el.model_class === 'ToolSectionLabel'" :definition="el" />
<Tool
v-else
:key="key"
class="ml-2"
:tool="el"
:tool-key="toolKey"
Expand Down

0 comments on commit a7e01dd

Please sign in to comment.