From fb3afe72ec7e56229ad992aa7989a4a9a43dcd1a Mon Sep 17 00:00:00 2001 From: Aslam H Date: Wed, 30 Oct 2024 05:53:35 +0700 Subject: [PATCH] chore: remove old task --- web/app/components/sidebar/partials/link-collection.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/web/app/components/sidebar/partials/link-collection.tsx b/web/app/components/sidebar/partials/link-collection.tsx index 6d1cdd5f..06c4b432 100644 --- a/web/app/components/sidebar/partials/link-collection.tsx +++ b/web/app/components/sidebar/partials/link-collection.tsx @@ -1,11 +1,8 @@ import * as React from "react" import { useAccount } from "@/lib/providers/jazz-provider" import { NavItem } from "~/components/custom/nav-item" -import { ListOfTasks } from "~/lib/schema" export const LinkCollection: React.FC = () => { - // will delete soon after do the versioning - const { me: tempMe } = useAccount() const { me } = useAccount({ root: { personalLinks: [], @@ -17,10 +14,6 @@ export const LinkCollection: React.FC = () => { }, }) - if (!tempMe.root?.tasks) { - tempMe.root!.tasks = ListOfTasks.create([], { owner: tempMe }) - } - const linkCount = me?.root.personalLinks?.length || 0 const pageCount = me?.root.personalPages?.length || 0 const taskCount = me?.root.tasks?.length || 0