Skip to content

Commit

Permalink
fix(TraverseNote): 🐛 For real, don't add non-md notes to ObsG
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Nov 26, 2021
1 parent c3668ef commit 7917e05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ export default class BCPlugin extends Plugin {
addNodesIfNot(ObsG, [sourceBase]);

for (const dest in resolvedLinks[source]) {
if (!dest.endsWith(".md")) continue;
const destBase = getBaseFromMDPath(dest);
addNodesIfNot(ObsG, [destBase]);
ObsG.addEdge(sourceBase, destBase, { resolved: true });
Expand Down Expand Up @@ -1153,8 +1154,8 @@ export default class BCPlugin extends Plugin {
if (currFile !== null) {
const cache = metadataCache.getFileCache(currFile);

const alias = cache?.frontmatter?.alias ?? [];
const aliases = cache?.frontmatter?.aliases ?? [];
const alias: string[] = cache?.frontmatter?.alias ?? [];
const aliases: string[] = cache?.frontmatter?.aliases ?? [];

const allAliases: string[] = [
...[alias].flat(3),
Expand Down

0 comments on commit 7917e05

Please sign in to comment.