l-min-components 1.0.620 → 1.0.626

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.0.620",
3
+ "version": "1.0.626",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -62,12 +62,13 @@ const HeaderComponent = (props) => {
62
62
  }, []);
63
63
 
64
64
  // Reload when another account is selected
65
- useEffect(() => {
66
- if (selectedAccount && selectedAccount !== prevAccountRef.current) {
67
- window.location.reload();
68
- }
69
- prevAccountRef.current = selectedAccount;
70
- }, [selectedAccount]);
65
+ // useEffect(() => {
66
+ // if (selectedAccount && selectedAccount !== prevAccountRef.current) {
67
+ // window.location.reload(); // Reload the page when a different account is selected
68
+ // }
69
+ // prevAccountRef.current = selectedAccount; // Update the ref after any potential reload
70
+ // }, [selectedAccount]);
71
+
71
72
 
72
73
  useEffect(() => {
73
74
  if (userAccountsDetail?.data) {
@@ -158,15 +159,6 @@ const HeaderComponent = (props) => {
158
159
  }));
159
160
  }
160
161
  }, [selectedAccount])
161
-
162
- useEffect(()=>{
163
- if(selectedAccount){
164
- setGeneralData((generalData) => ({
165
- ...generalData,
166
- defaultAccount: getDefaultAccount?.data,
167
- }));
168
- }
169
- }, [getDefaultAccount?.response])
170
162
 
171
163
  const containerRef = useRef(null);
172
164
  const secondContainerRef = useRef(null);