Skip to content

Commit 2d8756a

Browse files
authored
Fix initCompLabelEdit not being called (#29198)
Fix broken `if` from #29195 Signed-off-by: Yarden Shoham <[email protected]>
1 parent 0768842 commit 2d8756a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

web_src/js/features/common-organization.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ export function initCommonOrganization() {
66
return;
77
}
88

9-
const orgNameInput = document.querySelector('.organization.settings.options #org_name');
10-
if (!orgNameInput) return;
11-
orgNameInput.addEventListener('input', function () {
9+
document.querySelector('.organization.settings.options #org_name')?.addEventListener('input', function () {
1210
const nameChanged = this.value.toLowerCase() !== this.getAttribute('data-org-name').toLowerCase();
1311
toggleElem('#org-name-change-prompt', nameChanged);
1412
});

0 commit comments

Comments
 (0)