Skip to content

Commit 94c5496

Browse files
authored
Dev environment broken - workplan api issues (#1404)
* fixes * start of the phase will change based on the anticipated date of the first event of the first phase * fixes * fixes * fixes * dev environment broken
1 parent c8148c4 commit 94c5496

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

epictrack-api/src/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def handle_error(err):
7878
if isinstance(err, PermissionDeniedError):
7979
return err.message, HTTPStatus.FORBIDDEN
8080
if isinstance(err, UnprocessableEntityError):
81-
abort(HTTPStatus.UNPROCESSABLE_ENTITY, err.message)
81+
return err.message, HTTPStatus.UNPROCESSABLE_ENTITY
8282
return 'Internal server error', HTTPStatus.INTERNAL_SERVER_ERROR
8383

8484
register_shellcontext(app)

epictrack-web/src/components/myWorkplans/MyWorkPlanContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export const MyWorkplansProvider = ({
3131
}
3232

3333
try {
34-
const result = await workplanService.getAll(page);
35-
setWorkplans((prevWorkplans) => [...prevWorkplans, ...result.data]);
34+
// const result = await workplanService.getAll(page);
35+
// setWorkplans((prevWorkplans) => [...prevWorkplans, ...result.data]);
3636
setLoadingWorkplans(false);
3737
} catch (error) {
3838
console.log(error);

0 commit comments

Comments
 (0)