Skip to content

UI is crashing when there is no scheduled executions in response #114

@ipodobin

Description

@ipodobin

Project setup :
Spring Boot 2.6.3
Java corretto-17 (17.0.9)
PostgreSQL 15.2
Chrome Version 126.0.6478.127 (Official Build) (arm64)

Issue:
UI is crashing where there is no results in response. With console error:

TypeError: Cannot read properties of undefined (reading 'map')
at index-8c715290.js:431:16484
at Array.map ()
at mm (index-8c715290.js:431:16469)
at Xg (index-8c715290.js:38:19520)
at Xm (index-8c715290.js:40:3139)
at sT (index-8c715290.js:40:44734)
at oT (index-8c715290.js:40:39724)
at $R (index-8c715290.js:40:39652)
at Rd (index-8c715290.js:40:39506)
at lv (index-8c715290.js:40:35874)

Request:

db-scheduler-api/tasks/all?filter=FAILED&size=10&sorting=DEFAULT&asc=true&refresh=true&taskNameExactMatch=false&taskInstanceExactMatch=false

Response:

{"numberOfItems":0,"numberOfPages":0}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions