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

linting

ulfertsa02940f859ff
diff --git a/frontend/src/app/core/apiv3/endpoints/views/apiv3-views-paths.ts b/frontend/src/app/core/apiv3/endpoints/views/apiv3-views-paths.ts
index 627049deb05..a62f73a4abd 100644
--- a/frontend/src/app/core/apiv3/endpoints/views/apiv3-views-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/views/apiv3-views-paths.ts
@@ -45,7 +45,7 @@ export class APIv3ViewsPaths extends APIv3ResourceCollection<View, APIv3Gettable
}
/**
- * Create a new view resource
+ * Create a new view
*
* @param TODO
*/
@@ -60,9 +60,7 @@ export class APIv3ViewsPaths extends APIv3ResourceCollection<View, APIv3Gettable
responseType: 'json',
},
).pipe(
- map((view:unknown) => {
- return view as View;
- }),
+ map((view:View) => view),
);
}
}
diff --git a/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts b/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
index acdd0b277b7..2f20650d909 100644
--- a/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
@@ -38,7 +38,7 @@ import { I18nService } from 'core-app/core/i18n/i18n.service';
import { from, Observable, of } from 'rxjs';
import { input } from 'reactivestates';
import {
- catchError, mapTo, mergeMap, share, switchMap, take
+ catchError, mapTo, mergeMap, share, switchMap, take,
} from 'rxjs/operators';
import {
WorkPackageViewPaginationService,
@@ -241,7 +241,7 @@ export class WorkPackagesListService {
// Reload the query, and then reload the menu
this.reloadQuery(createdQuery).subscribe(() => {
- this.states.changes.queries.next(createdQuery.id!);
+ this.states.changes.queries.next(createdQuery.id);
});
return createdQuery;