Skip to content

Commit

Permalink
fix: dayLayoutAlgorithm prop with custom function (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragomir-Ivanov committed Apr 17, 2020
1 parent dd1e1a4 commit 3fb3c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/DayEventLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function getStyledEvents({
dayLayoutAlgorithm, // one of DefaultAlgorithms keys
// or custom function
}) {
let algorithm = null
let algorithm = dayLayoutAlgorithm

if (dayLayoutAlgorithm in DefaultAlgorithms)
algorithm = DefaultAlgorithms[dayLayoutAlgorithm]
Expand Down

0 comments on commit 3fb3c49

Please sign in to comment.