mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 09:03:02 +00:00
Resolve "Auth providers should be ready on components init"
This commit is contained in:
@@ -53,7 +53,7 @@ export type ICalLike = ICalKeyValuePair[];
|
||||
/**
|
||||
*
|
||||
*/
|
||||
function timeDist(
|
||||
function timeDistance(
|
||||
current: SCISO8601Date,
|
||||
next: SCISO8601Date | undefined,
|
||||
recurrence: unitOfTime.Diff,
|
||||
@@ -127,11 +127,11 @@ export function findRRules(
|
||||
const freq = minBy(
|
||||
units.map(recurrence => ({
|
||||
recurrence: recurrence,
|
||||
dist: timeDist(current, next, recurrence),
|
||||
dist: timeDistance(current, next, recurrence),
|
||||
})),
|
||||
it => it.dist,
|
||||
)?.recurrence;
|
||||
const interval = freq ? timeDist(current, next, freq) : undefined;
|
||||
const interval = freq ? timeDistance(current, next, freq) : undefined;
|
||||
|
||||
if (element?.interval === -1) {
|
||||
element.freq = freq;
|
||||
|
||||
Reference in New Issue
Block a user