Skip to content

Commit b7dcec6

Browse files
committed
Revert "Remove redundant if"
This reverts commit 08b21e8.
1 parent 08b21e8 commit b7dcec6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web_src/js/features/common-organization.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import {initCompLabelEdit} from './comp/LabelEdit.js';
22
import {toggleElem} from '../utils/dom.js';
33

44
export function initCommonOrganization() {
5+
if (document.querySelectorAll('.organization').length === 0) {
6+
return;
7+
}
8+
59
const orgNameInput = document.querySelector('.organization.settings.options #org_name');
610
if (!orgNameInput) return;
711
orgNameInput.addEventListener('input', function () {

0 commit comments

Comments
 (0)