Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): typecheck after jotai upgraded (#5779)

LongYinan8f4b4e20abaa
diff --git a/packages/frontend/core/src/components/page-list/list.tsx b/packages/frontend/core/src/components/page-list/list.tsx
index 93c4627f69..62ab1b49df 100644
--- a/packages/frontend/core/src/components/page-list/list.tsx
+++ b/packages/frontend/core/src/components/page-list/list.tsx
@@ -35,7 +35,6 @@ export const List = forwardRef<ItemListHandle, ListProps<ListItem>>(
return (
// push pageListProps to the atom so that downstream components can consume it
// this makes sure pageListPropsAtom is always populated
- // @ts-expect-error fix type issues later
<ListProvider initialValues={[[listPropsAtom, props]]}>
<ListInnerWrapper {...props} handleRef={ref}>
<ListInner {...props} />
diff --git a/packages/frontend/core/src/components/page-list/virtualized-list.tsx b/packages/frontend/core/src/components/page-list/virtualized-list.tsx
index 87f94aa647..2e42139940 100644
--- a/packages/frontend/core/src/components/page-list/virtualized-list.tsx
+++ b/packages/frontend/core/src/components/page-list/virtualized-list.tsx
@@ -77,7 +77,6 @@ export const VirtualizedList = forwardRef<
return (
// push pageListProps to the atom so that downstream components can consume it
// this makes sure pageListPropsAtom is always populated
- // @ts-expect-error fix type issues later
<ListProvider initialValues={[[listPropsAtom, props]]}>
<ListInnerWrapper {...props} handleRef={ref}>
<ListInner {...props} />