Skip to content
Snippets Groups Projects

Feat/code optimization

Merged Miłosz Grocholewski requested to merge feat/code-optimization into development
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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) => {
  • Miłosz Grocholewski deleted the feat/MIN-65-zoom-quality branch. This merge request now targets the development branch

    deleted the feat/MIN-65-zoom-quality branch. This merge request now targets the development branch

  • added 31 commits

    Compare with previous version

  • Konrad Przybysz approved this merge request

    approved this merge request

  • mentioned in commit 86f1cac5

  • Please register or sign in to reply
    Loading