# My image component is displaying the wrong image coming from Prismic (ReactJS/NextJS/Prismic)

**URL:** <https://community.prismic.io/t/my-image-component-is-displaying-the-wrong-image-coming-from-prismic-reactjs-nextjs-prismic/7955>\
**Category:** Developing with Prismic\
**Tags:** nextjs\
**Created:** [November 18, 2021, 2:25pm UTC](https://community.prismic.io/t/my-image-component-is-displaying-the-wrong-image-coming-from-prismic-reactjs-nextjs-prismic/7955 "2021-11-18T14:25:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![accounts7](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/accounts7/32/3298_2.png) [@accounts7](https://community.prismic.io/u/accounts7)\
**Post date:** [November 18, 2021, 2:25pm UTC](https://community.prismic.io/t/my-image-component-is-displaying-the-wrong-image-coming-from-prismic-reactjs-nextjs-prismic/7955/1 "2021-11-18T14:25:10Z")

</div>

My Image tag on Nextjs `<img src={imageComingFromPrismic.url} >` is displaying the wrong image. In my prismic slice, I am using a reputable data (group) which has two items, each item contains an image, for some reason as I map through my items array in code

 ![Screenshot 2021-11-18 at 14.24.33](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/c/c9252eca1b3faf9e2acbbcaf60025f197491097c.png)

 ![Screenshot 2021-11-18 at 14.26.40](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/6/63f147dd717c79e7086696f13be50241eb8581e9.png)

it displays the two images as the image from the first image, please help, is there something wrong within code. or within prismic

---

<div class="post-metadata">

**Author:** ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)\
**Post date:** [November 22, 2021, 10:08am UTC](https://community.prismic.io/t/my-image-component-is-displaying-the-wrong-image-coming-from-prismic-reactjs-nextjs-prismic/7955/5 "2021-11-22T10:08:52Z")

</div>

Hi @accounts7, I'm sorry that you're having trouble with this. Hopefully we can get it sorted out quickly 🙂

Can you send me the following things so that I can troubleshoot what might be going on here:

- The Url of your Prismic repository
- The query you're making to Prismic where you see this issue
- A little bit more of your rendering code that you sent

If you don't want to share your Prismic repo URL publically, you can send me a private message. Once I have these, I'll be able to take a look and see what might be the issue here.

---

<div class="post-metadata">

**Author:** ![Levi](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/levi/32/24_2.png) [@Levi](https://community.prismic.io/u/Levi)\
**Post date:** [November 29, 2021, 3:53pm UTC](https://community.prismic.io/t/my-image-component-is-displaying-the-wrong-image-coming-from-prismic-reactjs-nextjs-prismic/7955/6 "2021-11-29T15:53:54Z")

</div>

Threads close after a period of inactivity. [Flag this thread](https://community.prismic.io/t/re-open-a-thread/2175) to re-open it and continue the conversation.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 3:17pm UTC](https://community.prismic.io/t/my-image-component-is-displaying-the-wrong-image-coming-from-prismic-reactjs-nextjs-prismic/7955/7 "2021-12-09T15:17:03Z")

</div>


