SFDO-Community / declarative-lookup-rollup-summaries

Declarative Lookup Rollup Summaries (DLRS) is a community built and maintained Salesforce application that allows you to create cross object roll-ups declaratively - no code! For install instructions and documentation, visit our website https://sfdo-community-sprints.github.io/DLRS-Documentation/
https://sfdo-community-sprints.github.io/DLRS-Documentation/
BSD 3-Clause "New" or "Revised" License
689 stars 237 forks source link

LWC Wizard: if cronstrue lib isn't loaded, edit schedule modal will throw an error about `toString` #1450

Closed aheber closed 5 months ago

aheber commented 5 months ago

Describe the bug Either a race condition or a failure to load the cronstrue lib will result in an error thrown and the current scheduled items fail to load correctly.

To Reproduce Difficult to force through use, you can put a breakpoint during the loadScript callback and execute delete window.cronstrue to unload the library before it is used.

Expected behavior The modal should have a graceful fallback in the event that cronstrue fails to load. We should also try and manage the race condition better.