@@ -168,10 +168,8 @@ export function ExplorerNode({ node, opts, fullPath, fileData }: ExplorerNodePro
 | 
				
			|||||||
  const isDefaultOpen = opts.folderDefaultState === "open"
 | 
					  const isDefaultOpen = opts.folderDefaultState === "open"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Calculate current folderPath
 | 
					  // Calculate current folderPath
 | 
				
			||||||
  let folderPath = ""
 | 
					  const folderPath = node.name !== "" ? joinSegments(fullPath ?? "", node.name) : ""
 | 
				
			||||||
  if (node.name !== "") {
 | 
					  const href = resolveRelative(fileData.slug!, folderPath as SimpleSlug) + "/"
 | 
				
			||||||
    folderPath = joinSegments(fullPath ?? "", node.name)
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
    <>
 | 
					    <>
 | 
				
			||||||
@@ -205,11 +203,7 @@ export function ExplorerNode({ node, opts, fullPath, fileData }: ExplorerNodePro
 | 
				
			|||||||
              {/* render <a> tag if folderBehavior is "link", otherwise render <button> with collapse click event */}
 | 
					              {/* render <a> tag if folderBehavior is "link", otherwise render <button> with collapse click event */}
 | 
				
			||||||
              <div key={node.name} data-folderpath={folderPath}>
 | 
					              <div key={node.name} data-folderpath={folderPath}>
 | 
				
			||||||
                {folderBehavior === "link" ? (
 | 
					                {folderBehavior === "link" ? (
 | 
				
			||||||
                  <a
 | 
					                  <a href={href} data-for={node.name} class="folder-title">
 | 
				
			||||||
                    href={resolveRelative(fileData.slug!, folderPath as SimpleSlug)}
 | 
					 | 
				
			||||||
                    data-for={node.name}
 | 
					 | 
				
			||||||
                    class="folder-title"
 | 
					 | 
				
			||||||
                  >
 | 
					 | 
				
			||||||
                    {node.displayName}
 | 
					                    {node.displayName}
 | 
				
			||||||
                  </a>
 | 
					                  </a>
 | 
				
			||||||
                ) : (
 | 
					                ) : (
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user