diff options
author | Kate Butler <kate@innocraft.com> | 2019-02-27 00:33:42 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-02-27 00:33:42 +0300 |
commit | ba1068099b19ede7e2ca85f42ef5fe55165a2837 (patch) | |
tree | c278af38212cb7c982f6f48ee273ca6e3b619043 /plugins/SegmentEditor/javascripts | |
parent | 16edd06479324eb4c7c65a946187ee97b74fba1e (diff) |
Fix undefined error in segmentation.js (#14142)
Diffstat (limited to 'plugins/SegmentEditor/javascripts')
-rw-r--r-- | plugins/SegmentEditor/javascripts/Segmentation.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SegmentEditor/javascripts/Segmentation.js b/plugins/SegmentEditor/javascripts/Segmentation.js index 33606d5d8a..1b8a11e34c 100644 --- a/plugins/SegmentEditor/javascripts/Segmentation.js +++ b/plugins/SegmentEditor/javascripts/Segmentation.js @@ -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); } |