Commit 3a343be8 authored by Alfredo Sumaran's avatar Alfredo Sumaran

check if selectedObject is defined

parent 354fcf62
...@@ -606,7 +606,7 @@ ...@@ -606,7 +606,7 @@
if (this.options.inputId != null) { if (this.options.inputId != null) {
$input.attr('id', this.options.inputId); $input.attr('id', this.options.inputId);
} }
if (selectedObject.type) { if (selectedObject && selectedObject.type) {
$input.attr('data-type', selectedObject.type); $input.attr('data-type', selectedObject.type);
} }
return this.dropdown.before($input); return this.dropdown.before($input);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment