Skip to content

Conversation

Grsmto
Copy link
Contributor

@Grsmto Grsmto commented May 17, 2023

Fix the following bug:

  • Open the settings modal, change "Share conversations with model authors", close the modal without "applying"
  • Re-open modal, setting is still the same, making you think it was taken into consideration

This is because the input is mutating the settings prop.

@Grsmto Grsmto merged commit 865ebc3 into main May 18, 2023
@Grsmto Grsmto deleted the fix/settings-modal-reset-on-close branch May 18, 2023 15:26
ice91 pushed a commit to ice91/chat-ui that referenced this pull request Oct 30, 2024
* 🐛 Fix settings modal not resetting its state

should not mutate passed prop

* make variable dynamic in case it's updated from outside

Co-authored-by: Eliott C. <coyotte508@gmail.com>

* Revert "make variable dynamic in case it's updated from outside"

This reverts commit ba1938e.

---------

Co-authored-by: Eliott C. <coyotte508@gmail.com>
maksym-work pushed a commit to siilats/chat-ui that referenced this pull request Jul 2, 2025
* 🐛 Fix settings modal not resetting its state

should not mutate passed prop

* make variable dynamic in case it's updated from outside

Co-authored-by: Eliott C. <coyotte508@gmail.com>

* Revert "make variable dynamic in case it's updated from outside"

This reverts commit ba1938e.

---------

Co-authored-by: Eliott C. <coyotte508@gmail.com>
Matsenas pushed a commit to Matsenas/chat-ui that referenced this pull request Jul 4, 2025
* 🐛 Fix settings modal not resetting its state

should not mutate passed prop

* make variable dynamic in case it's updated from outside

Co-authored-by: Eliott C. <coyotte508@gmail.com>

* Revert "make variable dynamic in case it's updated from outside"

This reverts commit ba1938e.

---------

Co-authored-by: Eliott C. <coyotte508@gmail.com>
gary149 pushed a commit to gary149/chat-ui that referenced this pull request Aug 29, 2025
* 🐛 Fix settings modal not resetting its state

should not mutate passed prop

* make variable dynamic in case it's updated from outside

Co-authored-by: Eliott C. <coyotte508@gmail.com>

* Revert "make variable dynamic in case it's updated from outside"

This reverts commit ba1938e.

---------

Co-authored-by: Eliott C. <coyotte508@gmail.com>
gary149 pushed a commit to gary149/chat-ui that referenced this pull request Aug 29, 2025
* 🐛 Fix settings modal not resetting its state

should not mutate passed prop

* make variable dynamic in case it's updated from outside

Co-authored-by: Eliott C. <coyotte508@gmail.com>

* Revert "make variable dynamic in case it's updated from outside"

This reverts commit ba1938e.

---------

Co-authored-by: Eliott C. <coyotte508@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants