chore: remove old task

This commit is contained in:
Aslam H
2024-10-30 05:53:35 +07:00
parent ace9efc687
commit fb3afe72ec

View File

@@ -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