diff --git a/modules/ui/changeset_editor.js b/modules/ui/changeset_editor.js index a157e58f1..b65c8f7cc 100644 --- a/modules/ui/changeset_editor.js +++ b/modules/ui/changeset_editor.js @@ -85,8 +85,10 @@ export function uiChangesetEditor(context) { if (initial) { var node = d3.select('#preset-input-comment').node(); - node && node.focus(); - node && node.select(); + if (node) { + node.focus(); + node.select(); + } } notShown = notShown.map(function(field) {