Skip to content

Commit 9a4ebd2

Browse files
author
Ruben van Leeuwen
committed
2143: PR comments
1 parent 270efe3 commit 9a4ebd2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frontend/packages/pydantic-forms/src/core/hooks/useGetValidationErrors.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ import { useContext } from 'react';
33
import { PydanticFormValidationErrorContext } from '@/PydanticForm';
44

55
export const useGetValidationErrors = () => {
6-
const context = useContext(PydanticFormValidationErrorContext);
7-
return context;
6+
return useContext(PydanticFormValidationErrorContext);
87
};

0 commit comments

Comments
 (0)