# Shareable component: issues with conditional styles

**URL:** <https://community.appfarm.io/t/shareable-component-issues-with-conditional-styles/1731>\
**Category:** Bug reports\
**Tags:** shareable-component\
**Created:** [March 18, 2025, 9:42am UTC](https://community.appfarm.io/t/shareable-component-issues-with-conditional-styles/1731 "2025-03-18T09:42:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joanna](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/joanna/32/122_2.png) [@Joanna](https://community.appfarm.io/u/Joanna)\
**Post date:** [March 18, 2025, 9:42am UTC](https://community.appfarm.io/t/shareable-component-issues-with-conditional-styles/1731/1 "2025-03-18T09:42:21Z")

</div>

I’ve noticed two issues when setting up a shareable component:

1. Copying of conditional styles to and from shareable components doesn’t seem to be working. Tested scenarios:

- Set up conditional styles in a shareable component and try to copy them to another shareable component.
- Set up conditional styles in a shareable component and try to copy them to a regular component.
- Set up conditional styles in a regular component and try to copy them to another shareable component.

1. Conditional styles based on component params of type ENUM with data type `Integer` result in an error:

```auto
FilterParser: Unable to find Enumerated Type: - model is probably inconsistent

```

The problem doesn’t apply to built-in ENUMS like Device OS or ENUMS set up with data type `Auto`, so a workaround is available.

* * *

UPDATE: The above-mentioned errors don’t disappear from the console even after a new enum has been created with the data type `Auto` and the conditional styles are applied correctly in the UI.

---

<div class="post-metadata">

**Author:** ![nina](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/nina/32/1903_2.png) [@nina](https://community.appfarm.io/u/nina)\
**Post date:** [March 24, 2025, 9:09am UTC](https://community.appfarm.io/t/shareable-component-issues-with-conditional-styles/1731/2 "2025-03-24T09:09:18Z")

</div>

Hi Joanna! Thank you for reporting this bug. I have now registered this as a challenge and we will update you when it is fixed 😀
