Skip to content

Commit

Permalink
fix: 🐛 Initialise jugglLinks as empty array so that it always has .le…
Browse files Browse the repository at this point in the history
…ngth

It was initialised as undefined, previously
  • Loading branch information
SkepticMystic committed Aug 1, 2021
1 parent f8af54e commit 96d32af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sharedFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export async function getNeighbourObjArr(
splitAndTrim(childFieldName),
];

let jugglLinks: JugglLink[];
let jugglLinks: JugglLink[] = [];
if (plugin.app.plugins.plugins.juggl !== undefined) {
jugglLinks = await getJugglLinks(plugin.app, plugin.settings);
}
Expand Down

0 comments on commit 96d32af

Please sign in to comment.