Skip to content

Commit b4523cc

Browse files
committed
issues fix for focus
1 parent fc560bb commit b4523cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/notifications/SESConfigModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class SESConfigModal extends Component<SESConfigModalProps, SESConfigModa
109109
this.setState(state)
110110
})
111111
.then(() => {
112-
this._configName.focus()
112+
this._configName?.focus()
113113
})
114114
.catch((error) => {
115115
showError(error)

src/components/notifications/SMTPConfigModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class SMTPConfigModal extends Component<SMTPConfigModalProps, SMTPConfigM
6262
}))
6363
})
6464
.then(() => {
65-
this._configName.focus()
65+
this._configName?.focus()
6666
})
6767
.catch((error) => {
6868
showError(error)

0 commit comments

Comments
 (0)