# Smart actions - regressions in forest frontend: empty text fields return \`null\` since this afternoon

**URL:** <https://community.forestadmin.com/t/smart-actions-regressions-in-forest-frontend-empty-text-fields-return-null-since-this-afternoon/4190>\
**Category:** Help me!\
**Created:** [February 9, 2022, 5:17pm UTC](https://community.forestadmin.com/t/smart-actions-regressions-in-forest-frontend-empty-text-fields-return-null-since-this-afternoon/4190 "2022-02-09T17:17:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matteo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/matteo/32/75_2.png) [@Matteo](https://community.forestadmin.com/u/Matteo)\
**Post date:** [February 9, 2022, 5:17pm UTC](https://community.forestadmin.com/t/smart-actions-regressions-in-forest-frontend-empty-text-fields-return-null-since-this-afternoon/4190/1 "2022-02-09T17:17:27Z")

</div>

Hi Forest guys.

I’m absolutely sure that today at 15.30 (CET) the following was true (since years):  
_in a smart action, if we have a text field which:_  
_- is left empty_  
_- is not “touched” by the user_  
_when the smart action is submitted, the field value receieved in the backend was `undefined`_

As far as I can understand, I can see that at about 17.30 (CET), in the very same conditions, _the returned value is not `undefined` any more and `null` is returned._

At the moment I’m dealing with a number of regressions in my smart actions. So now I’m fixing on my side, managing this new `null` value too.

But in the mean time, may you please double check if something changed on your side in the Forest front end?

Thank you,  
Matteo

---

<div class="post-metadata">

**Author:** ![Matteo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/matteo/32/75_2.png) [@Matteo](https://community.forestadmin.com/u/Matteo)\
**Post date:** [February 9, 2022, 6:02pm UTC](https://community.forestadmin.com/t/smart-actions-regressions-in-forest-frontend-empty-text-fields-return-null-since-this-afternoon/4190/2 "2022-02-09T18:02:51Z")

</div>

`"forest-express-sequelize": "^7.9.3",`

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [February 10, 2022, 9:32am UTC](https://community.forestadmin.com/t/smart-actions-regressions-in-forest-frontend-empty-text-fields-return-null-since-this-afternoon/4190/3 "2022-02-10T09:32:24Z")

</div>

Hi @Matteo,

Yes good catch there is a tiny change. `null` value are not converted to `undefined` anymore. It makes more sense cause `undefined` means the field does not exist while null means it exists but it’s empty.

I hope it’s not too much to fix for you. Let me know otherwise I’ll do a quick “fix”.

---

<div class="post-metadata">

**Author:** ![Matteo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/matteo/32/75_2.png) [@Matteo](https://community.forestadmin.com/u/Matteo)\
**Post date:** [February 10, 2022, 9:59am UTC](https://community.forestadmin.com/t/smart-actions-regressions-in-forest-frontend-empty-text-fields-return-null-since-this-afternoon/4190/4 "2022-02-10T09:59:39Z")

</div>

Hi @anon62739609  
No problem, we already fixed. And I understand your logic: I think that the actual solution with `null` instead of `undefined` is better. So, no need for a revert on your side.  
The fix on my side was just a few lines of code…

The real hassle was finding out the problem, because this situation was unexpected and a change in Forest UI was the very last option we considered. In the afternoon a number of smart actions on our side stoped working. So this slight change created a huge incident in our business.

As far as I know, there’s no public release notes for your releases in the forest UI. So It’s very difficult to me to match the problems we experience with the changes on your side. We all agree that you are expected not to introduce regressions or breaking changes, but I understand it’s impossible to consider all the possible scenarios, especially with slight edge changes like this one. Nevertheless, we need to prevent this kind of situations.

In my opinion, it would be nice to have some kind of release notes whenever you have a new release. This could enable us to contribute better, while spending less time in diagnosing edge situations like this one. Why not?

Thank you in advance,  
Matteo

---

<div class="post-metadata">

**Author:** ![Arnaud\_Moncel](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud_moncel/32/24_2.png) [@Arnaud\_Moncel](https://community.forestadmin.com/u/Arnaud_Moncel)\
**Post date:** [February 10, 2022, 10:39am UTC](https://community.forestadmin.com/t/smart-actions-regressions-in-forest-frontend-empty-text-fields-return-null-since-this-afternoon/4190/5 "2022-02-10T10:39:00Z")

</div>

Hi @Matteo 👋 Thank you for your report.

We are totally agree with you and your feedback brings us to think about this type of changes.

We apologize for the time you have lost to find out where the problem came from.

Thank you again, i’m gonna share your feedback to our team.  
🙏

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [February 11, 2022, 10:19am UTC](https://community.forestadmin.com/t/smart-actions-regressions-in-forest-frontend-empty-text-fields-return-null-since-this-afternoon/4190/6 "2022-02-11T10:19:20Z")

</div>

Hello @Matteo,

For your information, we decided to rollback this behaviour as it might impact a lot of people without any prior notice (as it happens to you).  
We’ll probably make it live again in the future, but after a great communication about it.

Thanks a lot for your precious feedbacks 🙏

---

<div class="post-metadata">

**Author:** ![Matteo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/matteo/32/75_2.png) [@Matteo](https://community.forestadmin.com/u/Matteo)\
**Post date:** [February 11, 2022, 12:49pm UTC](https://community.forestadmin.com/t/smart-actions-regressions-in-forest-frontend-empty-text-fields-return-null-since-this-afternoon/4190/7 "2022-02-11T12:49:16Z")

</div>

Ok @anon34731316 thank you for letting me know.  
I confirm that with our latest fix we can now deal with both `undefined` and `null`, so no problem on my side.

Ciao,  
Matteo
