hi-tm 0.4.8 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -145,7 +145,7 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
|
|
|
145
145
|
setIsOpenModal(!isOpenModal);
|
|
146
146
|
};
|
|
147
147
|
const handleModalShowBranches = () => {
|
|
148
|
-
if (userBranchesData !== undefined
|
|
148
|
+
if (userBranchesData !== undefined) {
|
|
149
149
|
setIsOpenModalBranches(!isOpenModalBranches);
|
|
150
150
|
}
|
|
151
151
|
};
|
|
@@ -158,7 +158,7 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
|
|
|
158
158
|
}
|
|
159
159
|
}, [userBranchesData]);
|
|
160
160
|
const selectItemBranchHandler = (branch) => {
|
|
161
|
-
if (userBranchesData !== undefined
|
|
161
|
+
if (userBranchesData !== undefined) {
|
|
162
162
|
setBranchNameSelected(branch);
|
|
163
163
|
selectBranchHandler(branch);
|
|
164
164
|
setIsOpenModalBranches(false);
|
|
@@ -168,6 +168,7 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
|
|
|
168
168
|
changeLanguageHandler(language);
|
|
169
169
|
setIsOpenLanguageModal(false);
|
|
170
170
|
};
|
|
171
|
+
console.log("userBranchesData", userBranchesData);
|
|
171
172
|
(0, react_1.useEffect)(() => {
|
|
172
173
|
const handleClickOutside = (event) => {
|
|
173
174
|
if (modalCloseRefPC.current &&
|