Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

181
Vistas
I push the array, if it adds the element to me but it changes the values ​previously added to the array by push

'''

const quitarElementoArrSinResultado = (arrSelect, index) => {
  setArrConResultados(e=>[...e, {
    name: arrSinResutados[index],
    cantidadSolicitada: 1,
    value: arrSelect
  }])
}

'''

I do my first push and it works fine, but when I do the second push of another different object, it is added but changes the VALUE property of the previous elements of the array.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda