Reproduce:
- Goto the Reports list page
- Click on the "Create new Report" button
- Immediately close the page before the report builder has been loaded (enabling network throttling helps)
- Open a new tab and goto optimize (do not go to the edit mode of the newly created report)
- Goto the alerts section
- Click on the "Create new Alert" button
Expected:
- The create new alert modal opens
Observed:
- nothing happens
- In development mode, Optimize crashes when going to the alert page
Workaround:
- Goto the edit mode of the newly created report and save it
Hint:
- Can be fixed in both frontend and backend:
- Frontend fix: make the alerts page check if the report has a data field before accessing the visualization
- Backend fix: initialize the data field when creating a report