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): incorrect icon of initial reference (#7314)

L-Sundaceed922b24
diff --git a/packages/frontend/core/src/components/affine/reference-link/index.tsx b/packages/frontend/core/src/components/affine/reference-link/index.tsx
index 06e1b5306d..90226c2bf8 100644
--- a/packages/frontend/core/src/components/affine/reference-link/index.tsx
+++ b/packages/frontend/core/src/components/affine/reference-link/index.tsx
@@ -44,7 +44,7 @@ export function pageReferenceRenderer({
let title =
referencedPage?.title ?? t['com.affine.editor.reference-not-found']();
let icon =
- docMode === 'page' ? (
+ docMode === 'page' || docMode === null ? (
<LinkedPageIcon className={styles.pageReferenceIcon} />
) : (
<LinkedEdgelessIcon className={styles.pageReferenceIcon} />