diff --git a/cvat-ui/src/components/annotation-page/grades-form/grades-form.tsx b/cvat-ui/src/components/annotation-page/grades-form/grades-form.tsx index 676b26bbbb5c..1b2a8f3771ed 100644 --- a/cvat-ui/src/components/annotation-page/grades-form/grades-form.tsx +++ b/cvat-ui/src/components/annotation-page/grades-form/grades-form.tsx @@ -103,7 +103,7 @@ export function GradesForm({ task }: Props): JSX.Element | null { const handleUpdate = useCallback(async () => { const formValues = await formRef.current?.validateFields(); if (formValues) { - // dispatch(gradesActions.setGrades(formValues)); + dispatch(gradesActions.setGrades(formValues)); dispatch(submitHumanGradesAsync(frameOptions.certificateId)); } }, [frameOptions]); diff --git a/cvat-ui/src/reducers/grades-reducer.ts b/cvat-ui/src/reducers/grades-reducer.ts index 880bc56521fb..77218ea52d6a 100644 --- a/cvat-ui/src/reducers/grades-reducer.ts +++ b/cvat-ui/src/reducers/grades-reducer.ts @@ -97,7 +97,13 @@ export default function (state: GradesState = defaultState, action: any): Grades case GradesActionsTypes.SET_LOADING: return { ...state, loading: action.payload.loading }; case GradesActionsTypes.LOAD_VALUES: - return { ...state, values: action.payload.values }; + return { + ...state, + values: { + ...state.values, + ...action.payload.values, + }, + }; case GradesActionsTypes.ASSIGN_VALUES: return { ...state,