diff --git a/src/components/CollapsibleToolMenu.vue b/src/components/CollapsibleToolMenu.vue index 5e38d05..cdef098 100644 --- a/src/components/CollapsibleToolMenu.vue +++ b/src/components/CollapsibleToolMenu.vue @@ -49,14 +49,19 @@ function collapseAll() { const PAID_GROUP_NAME = 'ζŽˆζƒεΊ”η”¨'; const menuOptions = computed(() => { - // pull licensed tools out of their original categories + // pull licensed tools out of their original categories (dedupe by path: + // a paid tool may appear in both the favorites category and its own category) const paidTools: Tool[] = []; + const paidPaths = new Set(); const remaining = toolsByCategory.value .map(({ name, components }) => ({ name, components: components.filter((tool) => { if (tool.path in PROTECTED_TOOLS) { - paidTools.push(tool); + if (!paidPaths.has(tool.path)) { + paidPaths.add(tool.path); + paidTools.push(tool); + } return false; } return true;