Skip to content

Commit

Permalink
fix can't deserialize an empty string to extra options.
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Jan 12, 2016
1 parent f0a3120 commit b791007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kennel2/static/js/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ Compiler.prototype._selected_option_raw = function(cls, value) {
var e = options.find(cls);
if (e.size() == 0)
return undefined;
return value ? e.data('editor').setValue(value) : e.data('editor').getValue();
return value !== undefined ? e.data('editor').setValue(value) : e.data('editor').getValue();
}

Compiler.prototype.get_selected_compiler_option_raw = function() {
Expand Down

0 comments on commit b791007

Please sign in to comment.