Skip to content

Commit df07a44

Browse files
committed
Check for null input; there is no input on page load
1 parent b128f6c commit df07a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/api-token-row.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default Component.extend({
88

99
didInsertElement() {
1010
let input = this.element.querySelector('input');
11-
if (input.focus) {
11+
if (input && input.focus) {
1212
input.focus();
1313
}
1414
},

0 commit comments

Comments
 (0)