diff --git a/frontend/src/settings/Sources.tsx b/frontend/src/settings/Sources.tsx index 3d77cf61..8cb86932 100644 --- a/frontend/src/settings/Sources.tsx +++ b/frontend/src/settings/Sources.tsx @@ -337,7 +337,7 @@ export default function Sources({ index: number, document: Doc, ): SourceMenuOption[] => { - const isWiki = document.type === 'wiki'; + const isWiki = document.config?.kind === 'wiki' || document.type === 'wiki'; // 'team' viewers cannot write; convert is owner/editor only. const canEdit = document.ownership !== 'team' || document.team_access === 'editor'; @@ -464,7 +464,8 @@ export default function Sources({ return documentToView ? (
- {documentToView.type === 'wiki' ? ( + {documentToView.config?.kind === 'wiki' || + documentToView.type === 'wiki' ? (