mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-21 07:51:38 +02:00
chore: remove old task
This commit is contained in:
@@ -1,11 +1,8 @@
|
|||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import { useAccount } from "@/lib/providers/jazz-provider"
|
import { useAccount } from "@/lib/providers/jazz-provider"
|
||||||
import { NavItem } from "~/components/custom/nav-item"
|
import { NavItem } from "~/components/custom/nav-item"
|
||||||
import { ListOfTasks } from "~/lib/schema"
|
|
||||||
|
|
||||||
export const LinkCollection: React.FC = () => {
|
export const LinkCollection: React.FC = () => {
|
||||||
// will delete soon after do the versioning
|
|
||||||
const { me: tempMe } = useAccount()
|
|
||||||
const { me } = useAccount({
|
const { me } = useAccount({
|
||||||
root: {
|
root: {
|
||||||
personalLinks: [],
|
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 linkCount = me?.root.personalLinks?.length || 0
|
||||||
const pageCount = me?.root.personalPages?.length || 0
|
const pageCount = me?.root.personalPages?.length || 0
|
||||||
const taskCount = me?.root.tasks?.length || 0
|
const taskCount = me?.root.tasks?.length || 0
|
||||||
|
|||||||
Reference in New Issue
Block a user