Skip to content

Commit

Permalink
fix: "undefined" string returned from executing an expression that ha…
Browse files Browse the repository at this point in the history
…s no result
  • Loading branch information
chrisgurney committed Oct 28, 2024
1 parent 0941231 commit 6017ae3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Adapters/TemplaterAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6017ae3

Please sign in to comment.