Commit 0f772cd9 authored by Muhammadali's avatar Muhammadali

update

parent e065a4c1
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.1.6", "version": "2.1.7",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -14,7 +14,6 @@ const ControlRenderBX = () => { ...@@ -14,7 +14,6 @@ const ControlRenderBX = () => {
const intervalFunc = () => { const intervalFunc = () => {
setData(window.alovoice_wsphone); setData(window.alovoice_wsphone);
if (Boolean(data?.number)) { if (Boolean(data?.number)) {
console.log('interval', window.alovoice_wsphone);
clearInterval(intervalFetchToBx); clearInterval(intervalFetchToBx);
intervalFetchToBx = null; intervalFetchToBx = null;
} }
...@@ -23,6 +22,9 @@ const ControlRenderBX = () => { ...@@ -23,6 +22,9 @@ const ControlRenderBX = () => {
const testFunc = (e) => { const testFunc = (e) => {
console.log('dsadasdsd', e); console.log('dsadasdsd', e);
setData(e); setData(e);
setTimeout(() => {
setData({});
}, 3000);
}; };
console.log('check_data', data); console.log('check_data', data);
// switch (typeEnvironments) { // switch (typeEnvironments) {
...@@ -33,11 +35,7 @@ const ControlRenderBX = () => { ...@@ -33,11 +35,7 @@ const ControlRenderBX = () => {
// default: // default:
// return <Root setData={setData} data={data} />; // return <Root setData={setData} data={data} />;
// } // }
return ( return <div>{data?.number && <Root setData={testFunc} data={data} />}</div>;
<div>
<Root setData={testFunc} data={data} />
</div>
);
}; };
export default ControlRenderBX; export default ControlRenderBX;
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