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

obey eslint

as-opa33ce8e96698
diff --git a/frontend/src/stimulus/controllers/dynamic/work-packages/export/form.controller.ts b/frontend/src/stimulus/controllers/dynamic/work-packages/export/form.controller.ts
index f3b0ca68084..bdf0e1fa251 100644
--- a/frontend/src/stimulus/controllers/dynamic/work-packages/export/form.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/work-packages/export/form.controller.ts
@@ -1,6 +1,5 @@
import { Controller } from '@hotwired/stimulus';
import * as Turbo from '@hotwired/turbo';
-import { HttpErrorResponse } from '@angular/common/http';
export default class FormController extends Controller<HTMLFormElement> {
static values = {
@@ -48,12 +47,12 @@ export default class FormController extends Controller<HTMLFormElement> {
const exportURL = `${formatURL}?${searchParams.toString()}`;
this.requestExport(exportURL)
.then((job_id) => this.showJobModal(job_id))
- .catch((error) => this.handleError(error));
+ .catch((error) => this.handleError(error as string));
}
- private handleError(error:HttpErrorResponse) {
+ private handleError(error:any) {
void window.OpenProject.getPluginContext().then((pluginContext) => {
- pluginContext.services.notifications.addError(error);
+ pluginContext.services.notifications.addError(error as string);
});
}