question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicated menu when using hierarchy

See original GitHub issue

Bug Report

When adding sub-menu items, I’m facing an item both inside it’s parent and in the root level:

joxi_screenshot_1553196055980

Here is the document configuration:

---
name: Composition
route: /concepts/composition
menu: Concepts
---

And here is the menus config:

// doczrc.js
module.exports = {
  menu: [
    'Introduction',
    'Getting Started',
    { name: 'Development', menu: ['Structure', 'Environment & Commands'] },
    { name: 'Concepts', menu: ['Composition'] },
    { name: 'Reference', menu: ['Routing', 'Layouts & Blocks', 'Menus'] }
  ]
}

Expected behavior

Once I configure an item to be shown under a parent, it should not be shown in the root level.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:18 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
klappycommented, Jun 5, 2019

Is there an example of a working implementation of docz v1.2.0 with a custom menu using the above structure? I am getting duplicate entries and the one in the sub-menu is not clickable and does not function, yet the auto-generated duplicate appears to work.

1reaction
stale[bot]commented, Aug 6, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sorting duplicated names in a level of a hierarchy with DAX
This article describes how to use DAX calculated columns to sort names that look like duplicates at a certain level of a hierarchy,...
Read more >
How to remove duplicate member within hierarchy and ...
Hello Gurus, I have below table create table tab1 ( id varchar2(10), parent_id varchar2(10) ); with below data.
Read more >
Topic: Import of site creates menus with duplicate menu items
In creating an import and then exporting to a brand new mirror site, I have found that all of the menus created on...
Read more >
SQL Server Tree Hierarchy and Nested Sets with Duplicate ...
How can this be altered to allow records with duplicate Ids to be given [LeftExtent] and [RightExtent] values, or I am completely missing...
Read more >
How to Solve Duplicate Data Issues in Mondrian Hierarchy
The reason for the duplicate data is an improper ordering of levels in a hierarchy. Consider the below cube which gives information about...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found