diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-08-19 16:06:43 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-08-19 20:21:20 +0300 |
commit | f3e12526e93a0b0269c41284138dc4381a24fcf8 (patch) | |
tree | c65727b3ea5fd9a8c80dd202b5ee99a64b30b2e8 /app/assets | |
parent | 0d3a9a6d31940a63ca450e3308f1e154ea4d2e5c (diff) |
check if selectedObject is defined
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/gl_dropdown.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js b/app/assets/javascripts/gl_dropdown.js index 2b8b934154e..b7f27085b4f 100644 --- a/app/assets/javascripts/gl_dropdown.js +++ b/app/assets/javascripts/gl_dropdown.js @@ -604,7 +604,7 @@ if (this.options.inputId != null) { $input.attr('id', this.options.inputId); } - if (selectedObject.type) { + if (selectedObject && selectedObject.type) { $input.attr('data-type', selectedObject.type); } return this.dropdown.before($input); |