Feat/code optimization
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
Filter activity
assigned to @KonradAt
29 35 }, 30 36 ); 31 37 32 export const getLineTypes = createAsyncThunk<LineType[] | undefined, void, ThunkConfig>( 38 export const getLineTypes = createAsyncThunk<LineTypeDict | undefined, void, ThunkConfig>( 33 39 'vectorMap/getLineTypes', 34 40 async () => { 35 41 try { 36 42 const { data } = await axiosInstanceNewAPI.get<LineType[]>(apiPath.getLineTypes()); 37 43 const isDataValid = validateDataUsingZodSchema(data, z.array(lineTypeSchema)); 38 44 39 return isDataValid ? data : undefined; 45 if (!isDataValid) { 46 return {}; 47 } 48 return data.reduce((acc: LineTypeDict, line: LineType) => { changed this line in version 3 of the diff
added 31 commits
-
8192d85c...bddaac91 - 29 commits from branch
development
- fa1fe0b9 - chore: resolve merge conflicts
- 593ba326 - feat(vector-map): add arrayToDict function
-
8192d85c...bddaac91 - 29 commits from branch
mentioned in commit 86f1cac5
Please register or sign in to reply