Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for replace object in array with different object

Current License: CC BY-SA 4.0

11 events
when toggle format what by license comment
Sep 23, 2020 at 22:48 comment added poldeeek Let us continue this discussion in chat.
Sep 23, 2020 at 22:45 comment added Derek Menénedez Can you send me screenshots of the steps, I can't test what it's happen.
Sep 23, 2020 at 22:37 comment added Derek Menénedez When you do a console.log(users) every user is stringified???
Sep 23, 2020 at 22:35 comment added poldeeek SyntaxError: Unexpected token a in JSON at position 4
Sep 23, 2020 at 22:31 comment added Derek Menénedez result.invited_user_id = JSON.parse(user); try this...
Sep 23, 2020 at 22:28 comment added poldeeek results and users are two different arrays in my case. It's data from data base - codesandbox.io/s/lucid-jackson-nwmub?file=/src/index.js . Maybe this is the problem... :v
Sep 23, 2020 at 22:16 comment added Derek Menénedez I don't know how you are print that, but for me it's fine, let's see imgur.com/gallery/sC7ueZ2
Sep 23, 2020 at 22:11 comment added Derek Menénedez Let me a moment, and I try to fix that part.
Sep 23, 2020 at 22:10 comment added poldeeek hm... in invited_user_id i got this : "invited_user_id": "{\n _id: 5f69254ee410854be4840e99,\n name: 'Paweł',\n surname: 'fds'\n}",. It is not a object but string...
Sep 23, 2020 at 21:56 vote accept poldeeek
Sep 23, 2020 at 1:40 history answered Derek Menénedez CC BY-SA 4.0

AltStyle によって変換されたページ (->オリジナル) /