Skip to content

Commit cade0a4

Browse files
committed
probably fix #522
1 parent 0fbf1df commit cade0a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/fields/button/actions/RunTemplaterFileButtonActionConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ export class RunTemplaterFileButtonActionConfig extends AbstractButtonActionConf
1616
async run(
1717
_config: ButtonConfig | undefined,
1818
action: RunTemplaterFileButtonAction,
19-
_filePath: string,
19+
filePath: string,
2020
_context: ButtonContext,
2121
_click: ButtonClickContext,
2222
): Promise<void> {
2323
const templateFilePath = this.plugin.api.buttonActionRunner.resolveFilePath(action.templateFile);
24-
void (await this.plugin.internal.evaluateTemplaterTemplate(templateFilePath, templateFilePath));
24+
void (await this.plugin.internal.evaluateTemplaterTemplate(templateFilePath, filePath));
2525
}
2626

2727
create(): Required<RunTemplaterFileButtonAction> {

0 commit comments

Comments
 (0)