Commit f3e12526 authored by Alfredo Sumaran's avatar Alfredo Sumaran

check if selectedObject is defined

parent 0d3a9a6d
......@@ -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);
......
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