Skip to content

Commit 9561d76

Browse files
committed
Run format script
1 parent 88be266 commit 9561d76

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class RunTemplaterFileButtonActionConfig extends AbstractButtonActionConf
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, templateFilePath));
2525
}
2626

2727
create(): Required<RunTemplaterFileButtonAction> {

packages/core/src/modals/modalContents/buttonBuilder/RunTemplaterFileActionSettings.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
plugin: IPlugin;
1414
action: RunTemplaterFileButtonAction;
1515
} = $props();
16-
1716
</script>
1817

19-
<SettingComponent name="File path: {action.templateFile || 'default'}" description="The path from the vault to the templater file.">
18+
<SettingComponent
19+
name="File path: {action.templateFile || 'default'}"
20+
description="The path from the vault to the templater file."
21+
>
2022
<input type="text" bind:value={action.templateFile} placeholder="some path" />
2123
</SettingComponent>
22-
23-

tests/fields/Button.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,11 @@ const buttonActionTests: Record<ButtonActionType, () => void> = {
258258
expect(async () => {
259259
await simplifiedRunAction({
260260
type: ButtonActionType.RUN_TEMPLATER_FILE,
261-
templateFile: "test"
261+
templateFile: 'test',
262262
});
263263
}).not.toThrow();
264-
})
265-
}
264+
});
265+
},
266266
};
267267

268268
describe('Button', () => {

0 commit comments

Comments
 (0)