Skip to content

Commit

Permalink
UIQM-699 set default value for tenantId parameter in useValidation
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanDenis committed Sep 18, 2024
1 parent a932f53 commit b5e693f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useValidation/useValidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const formatFEValidation = (errors = {}) => {
}, {});
};

const useValidation = (context = {}, tenantId) => {
const useValidation = (context = {}, tenantId = null) => {
const quickMarcContext = useContext(QuickMarcContext);
const { validate: validateFetch } = useValidate({ tenantId });
const { duplicateLccnCheckingEnabled } = useLccnDuplicateConfig({ marcType: context.marcType });
Expand Down

0 comments on commit b5e693f

Please sign in to comment.