Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use more semantic `WeakMap#has:boolean` in place of `get`

Kabiru Mwenjad850b35ff8af
diff --git a/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.component.ts b/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.component.ts
index 06ef92b91bb..1738891635d 100644
--- a/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.component.ts
+++ b/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.component.ts
@@ -174,7 +174,7 @@ export class CkeditorAugmentedTextareaComponent extends UntilDestroyedMixin impl
private registerFormSubmitListener():void {
fromEvent(this.formElement, 'submit')
.pipe(
- filter(() => !CkeditorAugmentedTextareaComponent.inFlight.get(this.formElement)),
+ filter(() => !CkeditorAugmentedTextareaComponent.inFlight.has(this.formElement)),
this.untilDestroyed(),
)
.subscribe((evt:SubmitEvent) => {
@@ -184,7 +184,7 @@ export class CkeditorAugmentedTextareaComponent extends UntilDestroyedMixin impl
}
public async saveForm(evt?:SubmitEvent):Promise<void> {
- if (CkeditorAugmentedTextareaComponent.inFlight.get(this.formElement)) {
+ if (CkeditorAugmentedTextareaComponent.inFlight.has(this.formElement)) {
return;
}