# Trying to understand noTargeting and why its breaking my visual editor

**URL:** https://forum.builder.io/t/trying-to-understand-notargeting-and-why-its-breaking-my-visual-editor/1951
**Category:** Technical Questions
**Created:** [March 23, 2022, 9:04pm UTC](https://forum.builder.io/t/trying-to-understand-notargeting-and-why-its-breaking-my-visual-editor/1951 "2022-03-23T21:04:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mflores](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@mflores](https://forum.builder.io/u/mflores)
#### Post date: [March 23, 2022, 9:04pm UTC](https://forum.builder.io/t/trying-to-understand-notargeting-and-why-its-breaking-my-visual-editor/1951/1 "2022-03-23T21:04:00Z")

</div>

Hello,  
I’m trying to understand why this is happening to my visual editor. I’m trying to create environments in my space using this guide.

> [@How do I show different content in my development, qa, and production environments using Builder?](https://forum.builder.io/t/how-do-i-show-different-content-in-my-development-qa-and-production-environments-using-builder/1055):
>
> Sometimes you might want to publish content that is only visible on your development or QA environment in order to test it fully end to end before promoting it to production. Or maybe you want to publish content that you do not want to appear on your production site, but you want to test it on another environment. To do that, we suggest using [custom fields](https://www.builder.io/c/docs/custom-fields) to specify what content should appear where. Side note: we don’t recommend the traditional dev-\> qa -\>production flow for every single tiny …

My goal is to have builder only get pages marked as development when I am developing new components and code and then get production pages when the codebase is in production.

It works, but there is a weird visual thing happening with the editor. In the first screen shot when. my content is being pushed down and the blocks are being squished into the middle of the page.

for some reason though, if I comment out the options: { noTargeting: true} in the getStaticPaths function, it fixes the problem. How exactly does noTargeting work, and why does it resolve my problem when i comment it out?

I have attached a ss of relevant code as well.

**Screenshots or video link**

 ![broken](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/f/f7975f4ba019ca3f5a4f75d1e7de3f106d97bee3.png)  
 ![not broken](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/b/b21778a9bcf3261a901a96aeac7825ad8e5c556a.png)  
 ![code](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/c/c695d7d502008d18a487744686ad9812db563187.png)

---

<div class="post-metadata">

### Author: ![TimG](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/timg/32/714_2.png) [@TimG](https://forum.builder.io/u/TimG)
#### Post date: [March 23, 2022, 10:16pm UTC](https://forum.builder.io/t/trying-to-understand-notargeting-and-why-its-breaking-my-visual-editor/1951/2 "2022-03-23T22:16:47Z")

</div>

Hi @mflores noTargeting is telling the builder.getAll call to ignore any userAttributes or targeting that might limit the pages that are being returned, so it shouldn’t affect styling necessarily. If you console.log the `pages` with and without that part commented out are you seeing a difference in what is being returned?

---

<div class="post-metadata">

### Author: ![mflores](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@mflores](https://forum.builder.io/u/mflores)
#### Post date: [March 25, 2022, 4:26pm UTC](https://forum.builder.io/t/trying-to-understand-notargeting-and-why-its-breaking-my-visual-editor/1951/3 "2022-03-25T16:26:28Z")

</div>

Hey Tim,  
I did not see any difference when I console log the pages.

---

<div class="post-metadata">

### Author: ![TimG](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/timg/32/714_2.png) [@TimG](https://forum.builder.io/u/TimG)
#### Post date: [March 28, 2022, 11:34pm UTC](https://forum.builder.io/t/trying-to-understand-notargeting-and-why-its-breaking-my-visual-editor/1951/4 "2022-03-28T23:34:53Z")

</div>

@mflores it is difficult to trouble shoot on my end, I am not able to reproduce. If you could provide a fiddle of the broken page or somewhere we could reproduce easily that would be very helpful in digging into the issue.
