Skip to content

Commit

Permalink
Merge pull request #253 from intechstudio/bug/ConfigStoring
Browse files Browse the repository at this point in the history
Fresh install crash hotfix
  • Loading branch information
elsoazemelet authored May 19, 2023
2 parents 8882a7e + 9158186 commit 4c7d696
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/electron/src/profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ export async function moveOldConfigs(configPath, rootDirectory) {
}

export async function loadConfigsFromDirectory(configPath, rootDirectory) {
if (typeof configPath === "undefined" || configPath === "") {
return [];
}

let path = configPath;
// Create the folder if it does not exist
if (!fs.existsSync(path)) fs.mkdirSync(path);
Expand Down

0 comments on commit 4c7d696

Please sign in to comment.