-
- Downloads
Fix #17657: No recipients causes error resulting in blank screen (#17668)
* Invalidate the pulse if it contains no recipients Switch statement was returning `true`, resulting in falsely "valid" pulse in the case there were no recipients but the schedule was set to month. This commit fixes that. * Move all conditions before the switch statement * Enable repro for #17657 * Guard against the error that causes the white screen * Add another repro for #17657 * Fix typo in the test name * Fix typo in the unrelated comment
Showing
- frontend/src/metabase/lib/pulse.js 23 additions, 19 deletionsfrontend/src/metabase/lib/pulse.js
- frontend/src/metabase/sharing/components/PulsesListSidebar.jsx 5 additions, 2 deletions...end/src/metabase/sharing/components/PulsesListSidebar.jsx
- frontend/test/metabase/pulse/pulse.unit.spec.js 1 addition, 1 deletionfrontend/test/metabase/pulse/pulse.unit.spec.js
- frontend/test/metabase/scenarios/sharing/reproductions/17657.cy.spec.js 75 additions, 0 deletions...metabase/scenarios/sharing/reproductions/17657.cy.spec.js
- frontend/test/metabase/scenarios/sharing/subscriptions.cy.spec.js 1 addition, 1 deletion.../test/metabase/scenarios/sharing/subscriptions.cy.spec.js
Please register or sign in to comment