chore: publish bug (#74)

This commit is contained in:
Kilu.He
2025-04-01 10:23:03 +08:00
committed by GitHub
parent 71c7ff52f2
commit b48205128a
2 changed files with 13 additions and 13 deletions

View File

@@ -64,7 +64,7 @@ export const Document = (props: DocumentProps) => {
el.style.minHeight = `${scrollElement?.clientHeight - 64}px`; el.style.minHeight = `${scrollElement?.clientHeight - 64}px`;
}, [onRendered]); }, [onRendered]);
if(!document || !viewMeta.viewId || !viewMeta.workspaceId) return null; if (!document || !viewMeta.viewId) return null;
return ( return (

View File

@@ -93,7 +93,7 @@ function CollabView({ doc }: CollabViewProps) {
className={className} className={className}
> >
<View <View
workspaceId={''} workspaceId={'publish'}
doc={doc} doc={doc}
readOnly={true} readOnly={true}
loadViewMeta={loadViewMeta} loadViewMeta={loadViewMeta}