# Issue with SDK Omitting Metadata for Custom Components (Possible Bug?)

**URL:** <https://forum.builder.io/t/issue-with-sdk-omitting-metadata-for-custom-components-possible-bug/13081>\
**Category:** Bugs\
**Tags:** react\
**Created:** [February 25, 2025, 4:09pm UTC](https://forum.builder.io/t/issue-with-sdk-omitting-metadata-for-custom-components-possible-bug/13081 "2025-02-25T16:09:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/bill/32/4800_2.png) [@Bill](https://forum.builder.io/u/Bill)\
**Post date:** [February 25, 2025, 4:09pm UTC](https://forum.builder.io/t/issue-with-sdk-omitting-metadata-for-custom-components-possible-bug/13081/1 "2025-02-25T16:09:47Z")

</div>

I’ve run into an issue with the [Builder.io](http://Builder.io) SDK where custom components used by the page are omitted by default due to this default query in the SDK options:

```javascript
omit: queue[0].omit || 'meta.componentsUsed',

```

Source:

> <https://github.com/BuilderIO/builder/blob/8cd527d629bfc48a3e817eb06d78ad60b1b4b010/packages/core/src/builder.class.ts#L2506>

This means that if you want to use meta.componentsUsed with fetchOneEntry, you need to explicitly set `omit: ' '` (a space), or a field that doesn’t exists like `omit: 'doNotOmitAnything'` which seems to work as a workaround.

It seems like a bug, as the expected behavior would be for omit: undefined or an empty string to allow meta.componentsUsed to be included. Has anyone else run into this? Hoping the SDK gets a fix for this in the future!

Would love to hear thoughts from the community or if there’s a better way to handle this.

---

<div class="post-metadata">

**Author:** ![jared](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/jared/32/4673_2.png) [@jared](https://forum.builder.io/u/jared)\
**Post date:** [February 26, 2025, 3:52pm UTC](https://forum.builder.io/t/issue-with-sdk-omitting-metadata-for-custom-components-possible-bug/13081/2 "2025-02-26T15:52:17Z")

</div>

Hi @Bill.

I’m sorry to hear that you are running into this issue, but thank you very much for reporting it to us! We’ll be sure to take this back to the team internally to review and provide updates here as further information becomes available.

Thanks

---

<div class="post-metadata">

**Author:** ![Bill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/bill/32/4800_2.png) [@Bill](https://forum.builder.io/u/Bill)\
**Post date:** [March 31, 2025, 3:48pm UTC](https://forum.builder.io/t/issue-with-sdk-omitting-metadata-for-custom-components-possible-bug/13081/3 "2025-03-31T15:48:57Z")

</div>

Looks like this was fixed with [fix: [ENG-8644] overriding omit in fetchOneEntry to be empty string by yash-builder · Pull Request #3975 · BuilderIO/builder · GitHub](https://github.com/BuilderIO/builder/pull/3975)
