bugfixing
This commit is contained in:
parent
f5071f3d7e
commit
6fa210ddff
@ -390,15 +390,16 @@ function handleViewData(optionData) {
|
|||||||
previousCallVolume = displayCallVolume ?? 0;
|
previousCallVolume = displayCallVolume ?? 0;
|
||||||
if(mode === true) {
|
if(mode === true) {
|
||||||
try {
|
try {
|
||||||
let newData = JSON.parse(event.data);
|
const newData = JSON.parse(event.data);
|
||||||
if(rawData?.length !== newData?.length) {
|
if(rawData?.length !== newData?.length) {
|
||||||
newIncomingData = true;
|
newIncomingData = true;
|
||||||
}
|
}
|
||||||
newData = newData?.forEach((item) => {
|
|
||||||
item.dte = daysLeft(item?.date_expiration);
|
|
||||||
});
|
|
||||||
|
|
||||||
rawData = [...newData];
|
rawData = [...newData];
|
||||||
|
|
||||||
|
rawData?.forEach((item) => {
|
||||||
|
item.dte = daysLeft(item?.date_expiration);
|
||||||
|
});
|
||||||
|
|
||||||
if(ruleOfList?.length !== 0 || filterQuery?.length !== 0) {
|
if(ruleOfList?.length !== 0 || filterQuery?.length !== 0) {
|
||||||
shouldLoadWorker.set(true)
|
shouldLoadWorker.set(true)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user