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

eslint reminds about using === instead of ==

Ivan Kuchin533e75d8b6ed
diff --git a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
index 8d801f0297e..af413832564 100644
--- a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
@@ -243,7 +243,7 @@ export default class CustomFieldsController extends Controller {
private toggleFormat(format:string) {
this.formatConfigValue.forEach(([targetsName, operator, formats]) => {
- const active = operator == 'only' ? formats.includes(format) : !formats.includes(format);
+ const active = operator === 'only' ? formats.includes(format) : !formats.includes(format);
const targets = this[`${targetsName}Targets` as keyof typeof this] as HTMLElement[];
if (targets) {
this.setActive(targets, active);