Skip to content

Build your personal knowledge base with Trilium Notes

chore(ts): add temporary ts-ignore to widgets/buttons/attachments_actions

Panagiotis Papadopoulosd99a44867cf2
diff --git a/src/public/app/widgets/buttons/attachments_actions.ts b/src/public/app/widgets/buttons/attachments_actions.ts
index f25e9c376b..edb37b72d3 100644
--- a/src/public/app/widgets/buttons/attachments_actions.ts
+++ b/src/public/app/widgets/buttons/attachments_actions.ts
@@ -151,6 +151,8 @@ export default class AttachmentActionsWidget extends BasicWidget {
async copyAttachmentLinkToClipboardCommand() {
//TriliumNextTODO: the parent here is AttachmentDetailWidget
+ //how can we pass that to the generic TypedComponent<any>?
+ //@ts-ignore - TypedComponent<any>
this.parent?.copyAttachmentLinkToClipboard();
}