From 6017ae38f2d01f412b7553dc52f1732c35f111be Mon Sep 17 00:00:00 2001 From: Chris Gurney Date: Mon, 28 Oct 2024 17:00:27 -0400 Subject: [PATCH] fix: "undefined" string returned from executing an expression that has no result --- src/Adapters/TemplaterAdapter.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Adapters/TemplaterAdapter.ts b/src/Adapters/TemplaterAdapter.ts index 37025a2..0fef5d4 100644 --- a/src/Adapters/TemplaterAdapter.ts +++ b/src/Adapters/TemplaterAdapter.ts @@ -177,9 +177,8 @@ export default class TemplaterAdapter extends Adapter { active_file: activeFile }; if (this.adapterApi) { - // result = await this.templater.read_and_parse_template(config); result = await this.adapterApi.parse_template(config, expression); - debugLog("parseTemplate() result:", result); + result = (result === 'undefined') ? '' : result; } } catch (error) {