Skip to content

Test Error Component Fix #1

@ratta2ii

Description

@ratta2ii

While setting up each of the errors for the test error component, when you address the "Bad Guid" error in agent.ts, the initital "Bad Request" error brakes.

Solution (agent.ts): Move lines 38-40 to below line 41. As in nest the top "if" statement directly inside the one below it.

    case 400:
        if (data.errors) {
            if (config.method === 'get' && data.errors.hasOwnProperty('id')) {
                router.navigate('/not-found');
            }

Now all them work correctly again. Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions