mirror of
https://github.com/linsa-io/linsa.git
synced 2026-02-23 19:05:01 +01:00
chore: remove old task
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user