documentsmanager
This commit is contained in:
@@ -123,7 +123,7 @@ export const useWorkspaceSurface = ({
|
||||
const showPreviewWorkspace = Boolean(previewDocumentId);
|
||||
|
||||
const previewSurface = useMemo<WorkspaceSurface>(() => {
|
||||
if (!showPreviewWorkspace || !previewWorkspaceDocument) {
|
||||
if (!showPreviewWorkspace) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ export const useWorkspaceSurface = ({
|
||||
return {
|
||||
content: (
|
||||
<DocumentViewerPanel
|
||||
document={previewWorkspaceDocument}
|
||||
document={previewWorkspaceDocument || null}
|
||||
documentLink={documentLink}
|
||||
hydrateDocument={ensurePreviewData}
|
||||
tagLookupById={tagLookupById}
|
||||
|
||||
Reference in New Issue
Block a user