Skip to content

Commit 4188b26

Browse files
committed
Ignore non-existent MUC list query input domain element for tests to pass
This is probably just a race condition.
1 parent 0f941b4 commit 4188b26

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/plugins/muc-views/modals/muc-list.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ export default class MUCListModal extends BaseModal {
111111
}
112112

113113
onDomainChange () {
114-
this.querySelector('form-control').value = this.model.get('muc_domain');
114+
const domain_input = this.querySelector('form-control');
115+
if (domain_input) {
116+
/** @type {HTMLInputElement} */(domain_input).value = this.model.get('muc_domain');
117+
}
115118
this.items = [];
116119
this.model.save('feedback_text', '');
117120
api.settings.get('auto_list_rooms') && this.updateRoomsList();

0 commit comments

Comments
 (0)