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

274
Views
no se puede agregar la propiedad x, el objeto no es extensible

Estoy tratando de escribir una función que agregue un objeto a un FieldArray formik. No estoy usando la función preventExtensions y también intenté hacer una copia del objeto desde una solución diferente que encontré, pero nada funcionó para resolver este error. ¿Alguien sabe cómo agregar este objeto y evitar este error?

 const handleDropDownValueCheck = (e: any) => { const propertyFileIndex: number = e.target.value; const propertyInformation: object = { address: PropertyFiles[propertyFileIndex]?.address as string, property_file_id: PropertyFiles[propertyFileIndex] ?.property_file_id as string, property_file_name: PropertyFiles[propertyFileIndex] ?.property_file_name as string, property_id: propertyListItem?.id, }; selectedProperties?.find((propertyMapping, i) => { if (propertyMapping.property_id === propertyListItem?.id) { selectedProperties[i] = propertyInformation; } }); const propertyInformationCopy = Object.assign([], propertyInformation); selectedProperties?.push(propertyInformationCopy); arrayHelpers.push(selectedProperties); };
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!