Skip to content

Commit

Permalink
fix(WriteBCToFile): 🐛 Use fallback field if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Dec 29, 2021
1 parent 05a7325 commit 8a53195
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,6 @@ export default class BCPlugin extends Plugin {
() => new VisModal(this.app, this).open()
);

this.statusBatItemEl = this.addStatusBarItem();

this.addSettingTab(new BCSettingTab(this.app, this));
}

Expand All @@ -445,7 +443,8 @@ export default class BCPlugin extends Plugin {
}

const succInfo = mainG.mapInEdges(file.basename, (k, a, s, t) => {
const oppField = getOppFields(userHiers, a.field)[0];
const oppField =
getOppFields(userHiers, a.field)[0] ?? fallbackOppField(a.field, a.dir);
return { succ: s, field: oppField };
});

Expand Down

0 comments on commit 8a53195

Please sign in to comment.