Skip to content

Commit

Permalink
fix: ANT-2712 - remove console log (#73)
Browse files Browse the repository at this point in the history
Co-authored-by: marlenetienne <[email protected]>
  • Loading branch information
marlenetienne and marlenetienne authored Mar 6, 2025
1 parent 2749ff5 commit e9bc830
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/store/contexts/StudyProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { studyReducer } from '@/store/reducers/studyReducer.tsx';
import { StudyContext, StudyDispatchContext } from '@/store/contexts/StudyContext';
import { useLocation } from 'react-router-dom';
import { STUDY_ACTION } from '@/shared/enum/study.ts';
import { getStudyTrajectories } from '@/shared/services/trajectoryService.ts';
import { TRAJECTORY_TYPE } from '@/shared/enum/trajectory.ts';

export interface StudyProviderProps {
children: ReactNode;
Expand All @@ -23,16 +25,7 @@ export const StudyProvider = ({ children, initialValue }: StudyProviderProps) =>
const getTrajectories = async (d: Dispatch<StudyActionType>) => {
let response: unknown = [];
try {
response = [
{
id: 103,
trajectoryName: 'areas_BP2030_A_ref_v8',
type: 'AREA',
version: 1,
userName: null,
creationDate: '2025-02-19T15:53:54.453608',
},
]; //await getStudyTrajectories([study.id], TRAJECTORY_TYPE.AREA);
response = await getStudyTrajectories([study.id], TRAJECTORY_TYPE.AREA);
} finally {
if (response && (response as DbTrajectory[]).length > 0) {
d({
Expand Down

0 comments on commit e9bc830

Please sign in to comment.