1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-11 14:48:46 +01:00

fix: text-drag directive ts-strict error (#12346)

This commit is contained in:
Andreas Coroiu 2024-12-11 13:20:32 +01:00 committed by GitHub
parent e8d8a816dd
commit d4fcb5852a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,6 @@ export class TextDragDirective {
@HostListener("dragstart", ["$event"])
onDragStart(event: DragEvent) {
event.dataTransfer.setData("text", this.data);
event.dataTransfer?.setData("text", this.data);
}
}