Skip to content

Commit

Permalink
Properly reject with error object (#3140)
Browse files Browse the repository at this point in the history
  • Loading branch information
agalin920 authored Jan 15, 2025
1 parent 2899359 commit eba051f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ export const Field = ({
})
);
} else {
return Promise.reject("Missing modelZUID");
return Promise.reject(new Error("Missing modelZUID"));
}
}, [allLanguages.length, relatedModelZUID, langID]);

Expand Down

0 comments on commit eba051f

Please sign in to comment.