fix(core): incorrect icon of initial reference (#7314)

Closes: [AF-940](https://linear.app/affine-design/issue/AF-940/doc-created-with-%5B-%5B-syntax-are-by-default-in-doc-mode-but-shown-as)
This commit is contained in:
L-Sun
2024-06-25 01:44:49 +00:00
parent b38c46649f
commit daceed922b

View File

@@ -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} />