Adding text report with horizonatl rule causes error

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Fixed
    • Priority: L3 - Default
    • 3.10.0-alpha5, 3.10.0
    • Affects Version/s: None
    • Component/s: frontend
    • None

      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:

      1. run optimize locally (this error is hidden in production mode of react)
      2. create dashboard
      3. use "Add a Report" button
      4. select "Text Report"
      5. insert horizontal rule to the report
      6. try to add the report to the dashboard
      7. 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

            Assignee:
            Unassigned
            Reporter:
            Michal Konopski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: