kin: KIN-054 Исправить race condition в loadMode() при инициализации ProjectView
This commit is contained in:
parent
ae21e48b65
commit
756f9e65ab
5 changed files with 47 additions and 10 deletions
|
|
@ -40,6 +40,7 @@ export interface Project {
|
|||
priority: number
|
||||
tech_stack: string[] | null
|
||||
execution_mode: string | null
|
||||
autocommit_enabled: number | null
|
||||
created_at: string
|
||||
total_tasks: number
|
||||
done_tasks: number
|
||||
|
|
@ -169,7 +170,7 @@ export const api = {
|
|||
post<{ updated: string[]; count: number }>(`/projects/${projectId}/audit/apply`, { task_ids: taskIds }),
|
||||
patchTask: (id: string, data: { status?: string; execution_mode?: string }) =>
|
||||
patch<Task>(`/tasks/${id}`, data),
|
||||
patchProject: (id: string, data: { execution_mode: string }) =>
|
||||
patchProject: (id: string, data: { execution_mode?: string; autocommit_enabled?: boolean }) =>
|
||||
patch<Project>(`/projects/${id}`, data),
|
||||
deleteDecision: (projectId: string, decisionId: number) =>
|
||||
del<{ deleted: number }>(`/projects/${projectId}/decisions/${decisionId}`),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue