We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b53e4d commit e72781dCopy full SHA for e72781d
src/frontend/src/pages/WorkPackageForm/CreateWorkPackageForm.tsx
@@ -13,8 +13,8 @@ const CreateWorkPackageForm: React.FC = () => {
13
const wbsNum = query.get('wbs');
14
const history = useHistory();
15
16
- if (!wbsNum) throw new HttpException(400, 'WBS number not included in request.');
17
- if (!crId) throw new HttpException(400, 'CR ID not included in request.');
+ if (!wbsNum) throw new Error('WBS number not included in request.');
+ if (!crId) throw new Error('CR ID not included in request.');
18
19
const { mutateAsync } = useCreateSingleWorkPackage();
20
0 commit comments