Commit 4a0aa256 authored by Muhammadali's avatar Muhammadali

update

parent 6cc227e7
...@@ -15,7 +15,7 @@ const Root = ({ data, onSetDnd }) => { ...@@ -15,7 +15,7 @@ const Root = ({ data, onSetDnd }) => {
// else localStorage.setItem('activeValue', 1); // else localStorage.setItem('activeValue', 1);
// }, []); // }, []);
const [dataSecond, setDataSecond] = useState([]); const [dataSecond, setDataSecond] = useState([]);
const [mainData, setMainData] = useState({}); const [mainData, setMainData] = useState(data);
if (!data) { if (!data) {
data = { data = {
iscloud: true, iscloud: true,
...@@ -31,10 +31,6 @@ const Root = ({ data, onSetDnd }) => { ...@@ -31,10 +31,6 @@ const Root = ({ data, onSetDnd }) => {
}; };
} }
useEffect(() => {
setMainData(data);
}, []);
if (window?.alovoice_wsphone) { if (window?.alovoice_wsphone) {
// data = window.alovoice_wsphone; // data = window.alovoice_wsphone;
setMainData(window.alovoice_wsphone); setMainData(window.alovoice_wsphone);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment