# Possible Bug - Changing text in Function does not save

**URL:** <https://discourse.nodered.org/t/possible-bug-changing-text-in-function-does-not-save/81824>\
**Category:** General\
**Created:** [6 October 2023 11:04 UTC](https://discourse.nodered.org/t/possible-bug-changing-text-in-function-does-not-save/81824 "2023-10-06T11:04:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhewes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhewes/32/83489_2.png) [@dhewes](https://discourse.nodered.org/u/dhewes)\
**Post date:** [6 October 2023 11:04 UTC](https://discourse.nodered.org/t/possible-bug-changing-text-in-function-does-not-save/81824/1 "2023-10-06T11:04:10Z")

</div>

I went into function and changed the text (between quotes). It did not recognize there was a change and did not save. I can reproduce the issue. To get it to save I just inserted a blank line between code.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 October 2023 12:02 UTC](https://discourse.nodered.org/t/possible-bug-changing-text-in-function-does-not-save/81824/2 "2023-10-06T12:02:27Z")

</div>

Please tell us what version of Node-RED you are using. Also, what browser are you are using?

Lastly, a video or a step by step on how you make this happen would help.

Thanks

---

<div class="post-metadata">

**Author:** ![dhewes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dhewes/32/83489_2.png) [@dhewes](https://discourse.nodered.org/u/dhewes)\
**Post date:** [6 October 2023 18:45 UTC](https://discourse.nodered.org/t/possible-bug-changing-text-in-function-does-not-save/81824/3 "2023-10-06T18:45:25Z")

</div>

v3.1.0. I keep Node-RED up-to-date.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/97b3d0892b6b265ebf71192a757138239b536af3.png)

I changed the following text

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/1/4181ba0bd1ca0fb2355c75bc8526ae9b1721eab5.png)

When I clicked done it did allow me to Deploy. I went back in and it was not changed. I tried again and it was a no go. I pressed enter to add a line and that worked.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [6 October 2023 18:56 UTC](https://discourse.nodered.org/t/possible-bug-changing-text-in-function-does-not-save/81824/4 "2023-10-06T18:56:29Z")

</div>

@dhewes

Please state your UA/OS that is opening up the editor (i.e Chrome on Windows) - info that is helpful is below

Note:  
I **cannot** replicate this.

**Client**  
OS : OSX Sonoma (14)  
UA : Safari Version 17.0

**Server**  
Node RED : 3.1 (bare-metal)  
Node : v16.15.1

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 December 2023 18:56 UTC](https://discourse.nodered.org/t/possible-bug-changing-text-in-function-does-not-save/81824/5 "2023-12-05T18:56:36Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
