diff --git a/src/stores/useTaskStore.ts b/src/stores/useTaskStore.ts index 98fcdae..b78101b 100644 --- a/src/stores/useTaskStore.ts +++ b/src/stores/useTaskStore.ts @@ -173,6 +173,7 @@ const defaultTasks: Task[] = [ status: 'done', priority: 'high', projectId: '2', + sprintId: 'sprint-1', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), comments: [ @@ -190,6 +191,7 @@ const defaultTasks: Task[] = [ status: 'in-progress', priority: 'medium', projectId: '2', + sprintId: 'sprint-1', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), comments: [ @@ -210,6 +212,7 @@ const defaultTasks: Task[] = [ status: 'done', priority: 'medium', projectId: '2', + sprintId: 'sprint-1', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), comments: [ @@ -229,6 +232,7 @@ const defaultTasks: Task[] = [ status: 'done', priority: 'urgent', projectId: '2', + sprintId: 'sprint-1', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), comments: [ @@ -249,6 +253,7 @@ const defaultTasks: Task[] = [ status: 'done', priority: 'high', projectId: '2', + sprintId: 'sprint-1', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), comments: [ @@ -267,6 +272,7 @@ const defaultTasks: Task[] = [ status: 'done', priority: 'high', projectId: '2', + sprintId: 'sprint-1', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), comments: [ @@ -284,6 +290,7 @@ const defaultTasks: Task[] = [ status: 'done', priority: 'high', projectId: '2', + sprintId: 'sprint-1', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), comments: [ @@ -311,6 +318,7 @@ const defaultTasks: Task[] = [ status: 'done', priority: 'low', projectId: '3', + sprintId: 'sprint-1', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), comments: [ @@ -332,6 +340,7 @@ const defaultTasks: Task[] = [ status: 'done', priority: 'high', projectId: '2', + sprintId: 'sprint-1', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), comments: [ @@ -353,6 +362,7 @@ const defaultTasks: Task[] = [ status: 'backlog', priority: 'medium', projectId: '2', + sprintId: 'sprint-1', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), comments: [ @@ -383,7 +393,7 @@ export const useTaskStore = create()( (set, get) => ({ projects: defaultProjects, tasks: defaultTasks, - sprints: [], + sprints: defaultSprints, selectedProjectId: '1', selectedTaskId: null, selectedSprintId: null,