From 2b8fa751b7336b742c1d5624a2ad5c9974e679f1 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 2 Jul 2020 09:04:23 +0300 Subject: [PATCH] Revert "when using multiple select must have and array with default values" This reverts commit 7595be4df7355e46d03961344fe0080664358d7a. --- 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 fe82068..066a6cf 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, byday: ['SU'], bymonth: [1] }; + updatedOptions = { freq: newOptions.freq }; } else { updatedOptions = { ...options, ...newOptions } ; }