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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[eslint] ensure values in comparison are of the same type
Kabiru Mwenja6d0f59363ef5
diff --git a/frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.component.ts b/frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.component.tsindex fe6d18fccde..dedf008acae 100644--- a/frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.component.ts+++ b/frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.component.ts@@ -271,13 +271,13 @@ export class OpCkeditorComponent extends UntilDestroyedMixin implements OnInit,editor.editing.view.document,'keydown',(evt, data) => {- if ((data.ctrlKey || data.metaKey) && data.keyCode === KeyCodes.ENTER) {+ if ((data.ctrlKey || data.metaKey) && data.keyCode === Number(KeyCodes.ENTER)) {debugLog('Sending save request from CKEditor.');this.saveRequested.emit();evt.stop();}- if (data.keyCode === KeyCodes.ESCAPE) {+ if (data.keyCode === Number(KeyCodes.ESCAPE)) {this.editorEscape.emit();evt.stop();}