diff --git a/client/src/mocks/stub-new-work/applications.ts b/client/src/mocks/stub-new-work/applications.ts index 669c472791..6f68201b1d 100644 --- a/client/src/mocks/stub-new-work/applications.ts +++ b/client/src/mocks/stub-new-work/applications.ts @@ -31,24 +31,24 @@ export const mockApplicationArray: Application[] = [ ]; export const handlers = [ - rest.get(AppRest.APPLICATIONS, (req, res, ctx) => { - return res(ctx.json(mockApplicationArray)); - }), - rest.get(`${AppRest.APPLICATIONS}/:id`, (req, res, ctx) => { - const { id } = req.params; - const mockApplication = mockApplicationArray.find( - (app) => app.id === parseInt(id as string, 10) - ); - - if (mockApplication) { - return res(ctx.json(mockApplication)); - } else { - return res( - ctx.status(404), - ctx.json({ message: "Application not found" }) - ); - } - }), + // Commented out to avoid conflict with the real API + // rest.get(AppRest.APPLICATIONS, (req, res, ctx) => { + // return res(ctx.json(mockApplicationArray)); + // }), + // rest.get(`${AppRest.APPLICATIONS}/:id`, (req, res, ctx) => { + // const { id } = req.params; + // const mockApplication = mockApplicationArray.find( + // (app) => app.id === parseInt(id as string, 10) + // ); + // if (mockApplication) { + // return res(ctx.json(mockApplication)); + // } else { + // return res( + // ctx.status(404), + // ctx.json({ message: "Application not found" }) + // ); + // } + // }), ]; export default handlers;