From ad8d996a4cae5d6cefa4264b177bddbbc546260a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 23 Oct 2024 18:32:57 -0400 Subject: [PATCH] return existing vault id, if found --- packages/obsidian-testing-framework/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/obsidian-testing-framework/src/index.ts b/packages/obsidian-testing-framework/src/index.ts index b1b7a8a..afc5af0 100644 --- a/packages/obsidian-testing-framework/src/index.ts +++ b/packages/obsidian-testing-framework/src/index.ts @@ -81,7 +81,7 @@ function generateVaultConfig(vault: string) { writeFileSync(path.join(configLocation, `${vaultHash}.json`), "{}"); return vaultHash; } else { - return ""; + return Object.entries(json.vaults).find(a => a[1].path === vault)![0]; } }