Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

115
Visualizações
this.model.get('duration') returns different value from json dict

I have this structure:

Object { cid: "c130", attributes: {…}, collection: {…}, _changing: false, _previousAttributes: {…}, changed: {}, _pending: false, _lastTeamSession: false, _events: {…}, _listenId: "l131", … }
​
_changing: false
​
_events: Object { all: (1) […], change: (1) […], destroy: (1) […], … }
​
_lastTeamSession: false
​
_listenId: "l131"
​
_listeners: Object { l32: {…}, l133: {…} }
​
_pending: false
​
_previousAttributes: Object { duration: "00:00", value: 5, format: "1", … }
​
attributes: Object { duration: "53:04", value: 5, format: "1", … }
​​
athlete: Object { cid: "c11", _changing: false, id: 6, … }
​​
duration: "53:04"
​​
format: "1"
​​
teamsession: Object { cid: "c8", __version: 43, _changing: false, … }
​​
value: 5
​​
<prototype>: Object { … }
​
changed: Object { duration: "53:04" }
​
cid: "c130"
​
collection: Object { length: 1, models: (1) […], _listenId: "l31", … }
​
<prototype>: Object { … }

As you can see in attributes I've duration key, and its value is "53:04".

I want to assign this value to a variable using: let duration = this.model.get("duration");, but I obtain that duration's value is "00:00" and I don't understan why... Can anyone help me?

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda