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:
@@ -44,7 +44,7 @@ export function pageReferenceRenderer({
|
|||||||
let title =
|
let title =
|
||||||
referencedPage?.title ?? t['com.affine.editor.reference-not-found']();
|
referencedPage?.title ?? t['com.affine.editor.reference-not-found']();
|
||||||
let icon =
|
let icon =
|
||||||
docMode === 'page' ? (
|
docMode === 'page' || docMode === null ? (
|
||||||
<LinkedPageIcon className={styles.pageReferenceIcon} />
|
<LinkedPageIcon className={styles.pageReferenceIcon} />
|
||||||
) : (
|
) : (
|
||||||
<LinkedEdgelessIcon className={styles.pageReferenceIcon} />
|
<LinkedEdgelessIcon className={styles.pageReferenceIcon} />
|
||||||
|
|||||||
Reference in New Issue
Block a user