Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix(web): stop the new list button from nesting the bookmark preview modal (#3192)

samuel-sarmahc7c1b32ea3b4
diff --git a/apps/web/components/dashboard/sidebar/AllLists.tsx b/apps/web/components/dashboard/sidebar/AllLists.tsx
index d638697c..b390d0a7 100644
--- a/apps/web/components/dashboard/sidebar/AllLists.tsx
+++ b/apps/web/components/dashboard/sidebar/AllLists.tsx
@@ -1,7 +1,6 @@
"use client";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
-import Link from "next/link";
import { usePathname } from "next/navigation";
import SidebarItem from "@/components/shared/sidebar/SidebarItem";
import { Button } from "@/components/ui/button";
@@ -219,12 +218,12 @@ export default function AllLists({
Lists
</p>
<EditListModal>
- <Link href="#">
+ <button type="button" aria-label={t("lists.new_list")}>
<Plus
className="mr-2 size-4 text-muted-foreground"
strokeWidth={1.5}
/>
- </Link>
+ </button>
</EditListModal>
</li>
<SidebarItem