small deno-client fix

This commit is contained in:
Ruben Fiszel
2023-08-20 12:49:36 +02:00
parent c13428ad08
commit 688db5d5e4
+4 -1
View File
@@ -62,7 +62,10 @@ export async function getResource(
const workspace = getWorkspace();
path = path ?? getStatePath();
try {
return ResourceService.getResourceValueInterpolated({ workspace, path });
return await ResourceService.getResourceValueInterpolated({
workspace,
path,
});
} catch (e: any) {
if (undefinedIfEmpty && e.status === 404) {
return undefined;