Merge branch 'feature/project-list-grouping' into upstream/feature/project-groupby

This commit is contained in:
Chamika J
2025-06-13 13:02:17 +05:30
committed by GitHub
162 changed files with 11294 additions and 3349 deletions

View File

@@ -55,10 +55,9 @@ const initialState: TaskListState = {
export const getProject = createAsyncThunk(
'project/getProject',
async (projectId: string, { rejectWithValue, dispatch }) => {
async (projectId: string, { rejectWithValue }) => {
try {
const response = await projectsApiService.getProject(projectId);
dispatch(setProject(response.body));
return response.body;
} catch (error) {
return rejectWithValue(error instanceof Error ? error.message : 'Failed to fetch project');