adapt-security / adapt-authoring-ui

Frontend user interface of the Adapt authoring tool
1 stars 2 forks source link

API erroring when fetching more than 2 pages of content. #275

Closed joe-allen-89 closed 5 months ago

joe-allen-89 commented 5 months ago

What happened?

When trying to load the third page of content the apiCollection gets stuck in an infinte loop throwing constant errors (shown below). The regular expression in fetch isn't only pulling the next page but also the previous leading to the issue.

Expected behaviour

No response

Steps to reproduce

Create a course with more than 200 items.

Authoring tool version

rc4

Framework version

No response

What browsers are you seeing the problem on?

Firefox

Relevant log output

2024-01-18T14:25:02.496Z warn content failed to parse query page param 'undefined', SyntaxError: Unexpected token > in JSON at position 1