diff --git a/src/utils/DayEventLayout.js b/src/utils/DayEventLayout.js index 4ee883772..e6d21397e 100644 --- a/src/utils/DayEventLayout.js +++ b/src/utils/DayEventLayout.js @@ -23,8 +23,11 @@ export function getStyledEvents({ }) { let algorithm = null - if (dayLayoutAlgorithm in DefaultAlgorithms) + if (dayLayoutAlgorithm in DefaultAlgorithms) { algorithm = DefaultAlgorithms[dayLayoutAlgorithm] + } else { + algorithm = dayLayoutAlgorithm + } if (!isFunction(algorithm)) { // invalid algorithm