Skip to content

Commit

Permalink
fix(LimitTrailFields): 🐛 Reset limitTrailCheckboxes if it's empty
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Apr 18, 2022
1 parent eedaff3 commit 208a957
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -64412,6 +64412,9 @@ class BCPlugin extends obsidian.Plugin {
this.registerEditorSuggest(new FieldSuggestor(this));
if (enableRelationSuggestor)
this.registerEditorSuggest(new RelationSuggestor(this));
if (settings.limitTrailCheckboxes.length === 0) {
settings.limitTrailCheckboxes = getFields(settings.userHiers);
}
const { openMatrixOnLoad, openStatsOnLoad, openDuckOnLoad, openDownOnLoad, showBCs, userHiers, } = settings;
this.VIEWS = [
{
Expand Down
5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ export default class BCPlugin extends Plugin {
if (enableRelationSuggestor)
this.registerEditorSuggest(new RelationSuggestor(this));


if (settings.limitTrailCheckboxes.length === 0) {
settings.limitTrailCheckboxes = getFields(settings.userHiers)
}

const {
openMatrixOnLoad,
openStatsOnLoad,
Expand Down

0 comments on commit 208a957

Please sign in to comment.