|
@@ -64,7 +64,11 @@ export class HazardTrackingComponent {
|
|
|
this.route.queryParams.subscribe(params => {
|
|
|
if (params['ids']) {
|
|
|
this.isTaskRelative = true;
|
|
|
- this.ids = params['ids'].map(Number);
|
|
|
+ if (Array.isArray(params['ids'])) {
|
|
|
+ this.ids = params['ids'].map(Number);
|
|
|
+ } else {
|
|
|
+ this.ids = [params['ids']];
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
}
|