Skip to content

Commit

Permalink
fix: No async functions
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Jun 4, 2022
1 parent 59f70ee commit 273db73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5570,7 +5570,7 @@ function populateMain(settings, mainG, source, field, target, sourceOrder, targe
}
const getTargetOrder = (frontms, target) => {
var _a, _b;
return parseInt((_b = (_a = frontms.find((arr) => arr.file.basename === target)) === null || _a === void 0 ? void 0 : _a[BC_ORDER]) !== null && _b !== void 0 ? _b : "9999");
return parseInt((_b = (_a = frontms.find((ff) => { var _a; return ((_a = ff === null || ff === void 0 ? void 0 : ff.file) === null || _a === void 0 ? void 0 : _a.basename) === target; })) === null || _a === void 0 ? void 0 : _a[BC_ORDER]) !== null && _b !== void 0 ? _b : "9999");
};
const getSourceOrder = (frontm) => { var _a; return parseInt((_a = frontm[BC_ORDER]) !== null && _a !== void 0 ? _a : "9999"); };
/** Remember to filter by hierarchy in MatrixView! */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class HierarchyNoteManipulator extends FuzzySuggestModal<HNItem> {
const { editor } = view ?? {};
if (!editor) return;
//@ts-ignore
await view.leaf.openFile(this.file, { active: true, mode: "source" });
view.leaf.openFile(this.file, { active: true, mode: "source" });
editor.setCursor({ line: item.lineNo, ch: item.depth + 2 });
} else if (evt instanceof KeyboardEvent || evt instanceof MouseEvent) {
let rel: "up" | "down" | "same";
Expand Down

0 comments on commit 273db73

Please sign in to comment.