mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 00:46:45 +00:00
A repeat config with no stored startDate (e.g. DAILY/MONDAY_TO_FRIDAY or older configs) let Formly's `defaultValue: new Date()` put a raw Date into the model — `parsers` don't run on defaultValue. That Date reached `dateStrToUtcDate`, returned Invalid Date, made the weekOfMonth math NaN, and `ORDINAL_KEYS[NaN-1]` was undefined, so `translate.instant(undefined)` threw and broke the edit dialog. - Default startDate to a 'YYYY-MM-DD' string so the model stays type-consistent and no Date leaks into the cfg. - Guard `buildRepeatQuickSettingOptions` against an invalid Date so a bad value can never crash the dialog again. - Add regression tests for both. |
||
|---|---|---|
| .. | ||
| app | ||
| assets | ||
| environments | ||
| static | ||
| styles | ||
| test-helpers | ||
| typings | ||
| _common.scss | ||
| favicon.ico | ||
| hammer-config.class.ts | ||
| index.html | ||
| karma.conf.js | ||
| main.ts | ||
| manifest.json | ||
| polyfills.ts | ||
| styles.scss | ||
| test.ts | ||
| tsconfig.app.json | ||
| tsconfig.spec.json | ||
| tsconfig.worker.json | ||