Skip to content

Commit

Permalink
Fix undefined error in segmentation.js (matomo-org#14142)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kate Butler authored and tsteur committed Feb 26, 2019
1 parent 16edd06 commit ba10680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/SegmentEditor/javascripts/Segmentation.js
Expand Up @@ -595,7 +595,7 @@ Segmentation = (function($) {
$(self.form).find('.auto_archive_select > option[value="'+segment.auto_archive+'"]').prop("selected",true);
}

if (segment.definition != ""){
if (segment !== undefined && segment.definition != ""){
self.form.find('[piwik-segment-generator]').attr('segment-definition', segment.definition);
}

Expand Down

0 comments on commit ba10680

Please sign in to comment.