Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
Javascript object not updating on time

I have a JS Object

I tried to assign a property

onDeskEquipmentData[EQParasite.id].contentInformation.contentwise[I].thermos = {thermoProp: JSON.parse(JSON.stringify(thermos_data["compound"])),};

note:- variable I is from forEach(function(I){}) loop it iterates inside a array;

It do not assign thermos property on time as in the next line a function named updateTempratureOnShare(EQHost) uses the thermos property throws an error that it don't contain the thermos property. I used console.log() to confirm this and yes it didn't contain that but when I manually checked on my browser's console for onDeskEquipmentData[EQParasite.id].contentInformation.contentwise[I].thermos It was there, I have also used settimeout but it didn't work. This error is comming in some more places.

note:- function updateTempratureOnShare(EQHost) is not inside forEach loop

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!