We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72c6d79 commit 62bb621Copy full SHA for 62bb621
src/frontend/apps/impress/src/features/docs/doc-editor/components/comments/useComments.ts
@@ -1,5 +1,4 @@
1
import { useEffect, useMemo } from 'react';
2
-import type { Awareness } from 'y-protocols/awareness';
3
4
import { User } from '@/features/auth';
5
import { Doc, useProviderStore } from '@/features/docs/doc-management';
@@ -12,7 +11,7 @@ export function useComments(doc: Doc, user: User | null | undefined) {
12
11
const threadStore = useMemo(() => {
13
return new DocsThreadStore(
14
doc.id,
15
- (provider?.awareness ?? undefined) as Awareness | undefined,
+ provider?.awareness ?? undefined,
16
new DocsThreadStoreAuth(
17
encodeURIComponent(user?.full_name || ''),
18
doc.abilities.comment,
0 commit comments