-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
-
Not defined
Brief summary of the bug. What is it ? Where is it ?
When adding text report which contains horizontal rule to the dashboard, an error is thrown
flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.
Steps to reproduce:
- run optimize locally (this error is hidden in production mode of react)
- create dashboard
- use "Add a Report" button
- select "Text Report"
- insert horizontal rule to the report
- try to add the report to the dashboard
- in the console you should see the error
Actual result:
Error is thrown when report is added
Expected result:
Report should be added without any error