diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/background-tasks/utils.ts')
-rw-r--r-- | server/sonar-web/src/main/js/apps/background-tasks/utils.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/utils.ts b/server/sonar-web/src/main/js/apps/background-tasks/utils.ts index 848e240109f..ec3db153a2f 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/utils.ts +++ b/server/sonar-web/src/main/js/apps/background-tasks/utils.ts @@ -19,7 +19,6 @@ */ import { STATUSES, CURRENTS, ALL_TYPES } from './constants'; import { toShortNotSoISOString } from '../../helpers/dates'; -import { Task } from '../../app/types'; export interface Query { currents: string; @@ -30,7 +29,7 @@ export interface Query { taskType: string; } -export function updateTask(tasks: Task[], newTask: Task) { +export function updateTask(tasks: T.Task[], newTask: T.Task) { return tasks.map(task => (task.id === newTask.id ? newTask : task)); } |