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

Fix missing const in project script

Oliver Günther8704c784955f
diff --git a/frontend/src/app/core/augmenting/dynamic-scripts/project.js b/frontend/src/app/core/augmenting/dynamic-scripts/project.js
index 9dc625aa2bd..21939924e4f 100644
--- a/frontend/src/app/core/augmenting/dynamic-scripts/project.js
+++ b/frontend/src/app/core/augmenting/dynamic-scripts/project.js
@@ -197,9 +197,9 @@ jQuery(function ($) {
}
function setValueVisibility() {
- selectedOperator = $(this).val();
- $filter = $(this).parents('.advanced-filters--filter')
- $filterValue = $('.advanced-filters--filter-value', $filter);
+ const selectedOperator = $(this).val();
+ const $filter = $(this).parents('.advanced-filters--filter')
+ const $filterValue = $('.advanced-filters--filter-value', $filter);
if (['*', '!*', 't', 'w'].includes(selectedOperator)) {
$filterValue.addClass('hidden');
} else {