# \[BUG-6718\] Component Extension Functions won't re-enable if disabled with no lines of code

**URL:** <https://forum.inductiveautomation.com/t/bug-6718-component-extension-functions-wont-re-enable-if-disabled-with-no-lines-of-code/65116>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [October 12, 2022, 1:58pm UTC](https://forum.inductiveautomation.com/t/bug-6718-component-extension-functions-wont-re-enable-if-disabled-with-no-lines-of-code/65116 "2022-10-12T13:58:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveRNeal](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@DaveRNeal](https://forum.inductiveautomation.com/u/DaveRNeal)\
**Post date:** [October 12, 2022, 1:58pm UTC](https://forum.inductiveautomation.com/t/bug-6718-component-extension-functions-wont-re-enable-if-disabled-with-no-lines-of-code/65116/1 "2022-10-12T13:58:55Z")

</div>

Good Morning,

We've come across a bug recently that prevents a component's Extension Functions from re-enabling. I'm not sure if this is exclusive to 8.1.20, but it's the version we're currently using.

Steps taken:

1. Open the Component Scripting window and click on an Extension Function
2. Enable said Extension Function
3. Remove all lines from the script (this will leave Line 1 with the pre-defined function name/arguments and Line 2 with no text)
4. Disable the Extension Function then click Apply or OK.

This will effectively lock us out of editing that script in the future. The only thing we can do is delete the component and create another (copying the component gives us the same issue). The Enabled checkbox looks to be selected when we click on it but the script text area doesn't enable. Clicking away from that extension function and back again will show that the Extension Function is still enabled.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/a/5a4f44425705216b5fbc2b003d86b459a0d744d8.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 12, 2022, 2:43pm UTC](https://forum.inductiveautomation.com/t/bug-6718-component-extension-functions-wont-re-enable-if-disabled-with-no-lines-of-code/65116/2 "2022-10-12T14:43:59Z")

</div>

Great report! You should report this to support. (This forum is not official support.)

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 12, 2022, 2:45pm UTC](https://forum.inductiveautomation.com/t/bug-6718-component-extension-functions-wont-re-enable-if-disabled-with-no-lines-of-code/65116/3 "2022-10-12T14:45:04Z")

</div>

This isn't support, but I'm already on it.

I've opened a new ticket and updated the thread to reference that ticket.

Thanks for the great report, @DaveRNeal ; the steps were very clear and helped with replication.

---

<div class="post-metadata">

**Author:** ![DaveRNeal](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@DaveRNeal](https://forum.inductiveautomation.com/u/DaveRNeal)\
**Post date:** [October 12, 2022, 2:57pm UTC](https://forum.inductiveautomation.com/t/bug-6718-component-extension-functions-wont-re-enable-if-disabled-with-no-lines-of-code/65116/4 "2022-10-12T14:57:02Z")

</div>

Thanks for the tip! I'll be sure to do that as well next time.
