Skip to content

Commit

Permalink
Fixed error test
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian1998 committed Jun 9, 2018
1 parent 7191d93 commit 98571a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/app/models/simpleEventModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ app.factory('SimpleEvent', function () {
if(newSimpleData.rrule.byday) {
params.byday = newSimpleData.rrule.byday;
}
else if(newSimpleData.rrule.parameters.BYDAY) {
else if(angular.isDefined(newSimpleData.rrule.parameters) && angular.isDefined(newSimpleData.rrule.parameters.BYDAY)) {
params.byday = newSimpleData.rrule.parameters.BYDAY;
}

Expand Down

0 comments on commit 98571a3

Please sign in to comment.