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 import in page.controller

Oliver Günther1f5617ca3e21
diff --git a/frontend/src/stimulus/controllers/dynamic/reporting/page.controller.ts b/frontend/src/stimulus/controllers/dynamic/reporting/page.controller.ts
index 75100a03524..49bff501e70 100644
--- a/frontend/src/stimulus/controllers/dynamic/reporting/page.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/reporting/page.controller.ts
@@ -29,7 +29,7 @@
*/
import { Controller } from '@hotwired/stimulus';
-import * as jQuery from 'jquery';
+import jQuery from 'jquery';
import 'tablesorter';
declare global {
@@ -192,7 +192,6 @@ export default class PageController extends Controller {
// This prevents the tablesorter plugin to check for metadata which is done
// using eval which conflicts with our csp.
// Works because of a check in tablesorter:
- // @ts-expect-error Prevent metadata from accessing metadata
jQuery.metadata = undefined;
// Override the default texts to enable translations