# Мелкий баг в редакторе AI Persona: значения необязательных полей сохраняются после сохранения

**URL:** https://meta.discourse.org/t/small-bug-in-ai-persona-editor-optional-fields-values-persist-after-saving/373176
**Category:** Bug
**Tags:** ai
**Created:** [07.Июль.2025 12:50:16 UTC](https://meta.discourse.org/t/small-bug-in-ai-persona-editor-optional-fields-values-persist-after-saving/373176 "2025-07-07T12:50:16Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [08.Июль.2025 15:42:50 UTC](https://meta.discourse.org/t/small-bug-in-ai-persona-editor-optional-fields-values-persist-after-saving/373176/4 "2025-07-08T15:42:50Z")

</div>

Спасибо за отчет. Это должно исправить проблему:

> <https://github.com/discourse/discourse/pull/33520>
>
> At the moment emptying a input-text is making it \`undefined\` instead of \`null\`. …It's generally not a big deal but can be harder to work with.
> 
> There's also the very specific case of \`JSON.stringify(data)\` which will remove keys if the value is undefined.

---

_[View the full topic](https://meta.discourse.org/t/small-bug-in-ai-persona-editor-optional-fields-values-persist-after-saving/373176)._
