Fixing multiple duration default issues (#6114)
* Fixing multiple duration default issues * Ensure that when calculation time slots we use 1 as a minimum interval, since 0 min meetings would result in an infinite loop. Co-authored-by: Jeroen Reumkens <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
3 files changed
+16
-4
No files matched your search
@@ -262,12 +262,14 @@ export const EventSetupTab = (
|
||||
if (!newOptions.find((opt) => opt.value === defaultDuration?.value)) {
|
||||
if (newOptions.length > 0) {
|
||||
setDefaultDuration(newOptions[0]);
|
||||
formMethods.setValue("length", newOptions[0].value);
|
||||
} else {
|
||||
setDefaultDuration(null);
|
||||
}
|
||||
}
|
||||
if (newOptions.length === 1 && defaultDuration === null) {
|
||||
setDefaultDuration(newOptions[0]);
|
||||
formMethods.setValue("length", newOptions[0].value);
|
||||
}
|
||||
formMethods.setValue("metadata.multipleDuration", values);
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user