Commit 2e5cb640 authored by Muhammadali's avatar Muhammadali

update-

parent 2d72335d
{
"name": "boxdialer",
"version": "4.8.48",
"version": "4.8.49",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -4,7 +4,7 @@ import React, { createContext } from 'react';
import { useState } from 'react';
export const contextModalEventProperty = createContext();
const ModalEventProperty = ({ children }) => {
const [callEvents, setCallEvents] = useState(null);
const [callEvents, setCallEvents] = useState([]);
return (
<contextModalEventProperty.Provider value={[callEvents, setCallEvents]}>
{children}
......
......@@ -13,7 +13,9 @@ import { contextModalEventProperty } from '../context/modalEventProperty';
const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
const boxDialer = window.BoxDialer;
const [callEvents, setCallEvents] = useContext(contextModalEventProperty);
const [callEvents, setCallEvents] = useContext(
contextModalEventProperty || [],
);
const [phoneModal, setPhoneModal] = useState(false);
const [dynamicValue, setDynamicValue] = useState('pending');
const [modalState, setModalState] = useState(false);
......
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