When dismissing a flag, the operation sometimes fails before sending the XHR request, with the following error shown in console:
Uncaught (in promise) TypeError: cyclic object value
request request.js:173
a request.js:23
nrWrapper 5158:4
r 5158:4
s request.js:22
request Application.js:360
dismissFlag addFlagsToPosts.js:45
handleEvent render.js:888
t 5158:4
nrWrapper 5158:4
Steps to Reproduce
I don't have a way to reproduce it consistently, it seems to happen only to me on my forum and not always.
What I do is just clicking "Delete flag". Refreshing the page sometimes fixes the issue, sometimes not.
Expected Behavior
The flag should be deleted without errors.
Environment
Flarum version: 1.0.4
Website URL: not relevant
Webserver: not relevant
Hosting environment: not relevant
PHP version: not relevant
Browser: Firefox 91 on desktop. Not seeing this with Firefox on mobile
Bug Report
Current Behavior
When dismissing a flag, the operation sometimes fails before sending the XHR request, with the following error shown in console:
Steps to Reproduce
I don't have a way to reproduce it consistently, it seems to happen only to me on my forum and not always.
What I do is just clicking "Delete flag". Refreshing the page sometimes fixes the issue, sometimes not.
Expected Behavior
The flag should be deleted without errors.
Environment