sanity-plugin-recurring-dates 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -4278,6 +4278,11 @@ function Monthly(props) {
|
|
|
4278
4278
|
setByweekday([newWeekday]);
|
|
4279
4279
|
}
|
|
4280
4280
|
}, [dayNo, setByweekday, weekNo]);
|
|
4281
|
+
React.useEffect(() => {
|
|
4282
|
+
if (!weekNo) {
|
|
4283
|
+
setByweekday(null);
|
|
4284
|
+
}
|
|
4285
|
+
}, []);
|
|
4281
4286
|
return /* @__PURE__ */jsxRuntime.jsxs(ui.Flex, {
|
|
4282
4287
|
gap: 2,
|
|
4283
4288
|
align: "center",
|
|
@@ -4453,7 +4458,7 @@ function CustomRule(_ref8) {
|
|
|
4453
4458
|
interval,
|
|
4454
4459
|
count: count || null,
|
|
4455
4460
|
until: until ? until : null,
|
|
4456
|
-
byweekday
|
|
4461
|
+
byweekday: frequency === rrule.RRule.WEEKLY || frequency === rrule.RRule.MONTHLY ? byweekday : null
|
|
4457
4462
|
};
|
|
4458
4463
|
const newRule = new rrule.RRule(newOptions);
|
|
4459
4464
|
onClose();
|