Commit b2351c58 authored by jorgegc's avatar jorgegc Committed by Robert Ragas

Issue #2625862 by jorgegc: Javascript error

parent 487bd7ce
......@@ -203,7 +203,8 @@ YoastSEO_DrupalSource.prototype.getDataFromInput = function( field ) {
return output.join("\n");
}else{
return document.getElementById(this.config.fields[field]).value;
var fieldElem = document.getElementById(this.config.fields[field]);
return (fieldElem !== null) ? fieldElem.value : '';
}
};
......
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