File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ import {
3434 invokeAsyncSafely ,
3535 requestAnimationFrameAsync
3636} from 'obsidian-dev-utils/Async' ;
37- import { getPrototypeOf } from 'obsidian-dev-utils/ObjectUtils' ;
37+ import {
38+ getNestedPropertyValue ,
39+ getPrototypeOf
40+ } from 'obsidian-dev-utils/ObjectUtils' ;
3841import {
3942 parseLink ,
4043 parseLinks ,
@@ -477,8 +480,12 @@ export class Plugin extends PluginBase<PluginTypes> {
477480 continue ;
478481 }
479482
480- cache . frontmatterLinks . push ( link ) ;
481- newLinks . push ( link ) ;
483+ if ( cache . frontmatter && getNestedPropertyValue ( cache . frontmatter , link . key ) instanceof String ) {
484+ cache . frontmatterLinks . push ( link ) ;
485+ newLinks . push ( link ) ;
486+ } else {
487+ this . frontmatterMarkdownLinksCache . deleteKey ( note . path , link . key ) ;
488+ }
482489 }
483490
484491 for ( const link of newLinks ) {
You can’t perform that action at this time.
0 commit comments