From 7595be4df7355e46d03961344fe0080664358d7a Mon Sep 17 00:00:00 2001 From: Tal Leibman Date: Wed, 1 Jul 2020 20:16:22 +0300 Subject: [PATCH] when using multiple select must have and array with default values --- src/widgets/RRule.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/RRule.tsx b/src/widgets/RRule.tsx index 066a6cf..fe82068 100644 --- a/src/widgets/RRule.tsx +++ b/src/widgets/RRule.tsx @@ -122,7 +122,7 @@ export default function RRule(props: PropsType) { function updateRule(newOptions: Partial): void { let updatedOptions: RRuleOptions; if (!!options.freq && !!newOptions.freq && options.freq !== newOptions.freq) { - updatedOptions = { freq: newOptions.freq }; + updatedOptions = { freq: newOptions.freq, byday: ['SU'], bymonth: [1] }; } else { updatedOptions = { ...options, ...newOptions } ; }