diff --git a/front/src/components/ui/Tab.vue b/front/src/components/ui/Tab.vue index 82a02aa75..053abf647 100644 --- a/front/src/components/ui/Tab.vue +++ b/front/src/components/ui/Tab.vue @@ -17,7 +17,7 @@ const { currentTitle, tabs } = inject(TABS_INJECTION_KEY, { tabs: [] }) -whenever(() => !tabs.includes(props), () => { +whenever(() => !tabs.some(tab => props.title === tab.title), () => { tabs.push(props) }, { immediate: true })