Additional fixes from code review comments

This commit is contained in:
Nathan Byrd 2022-01-29 21:27:03 -06:00
parent 049c3a870a
commit d4098ed114
2 changed files with 3 additions and 4 deletions

View file

@ -792,7 +792,7 @@ exports.FullScreenEditorModule = exports.getModule = class FullScreenEditorModul
},
function prepareViewStates(callback) {
let from = self.viewControllers.header.getView(MciViewIds.header.from);
if (from !== undefined) {
if (from) {
from.acceptsFocus = false;
}
@ -918,7 +918,7 @@ exports.FullScreenEditorModule = exports.getModule = class FullScreenEditorModul
initHeaderViewMode() {
// Only set header text for from view if it is on the form
if (self.viewControllers.header.getView(MciViewIds.header.from) !== undefined) {
if (this.viewControllers.header.getView(MciViewIds.header.from) !== undefined) {
this.setHeaderText(MciViewIds.header.from, this.message.fromUserName);
}
this.setHeaderText(MciViewIds.header.to, this.message.toUserName);