mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-03 02:59:07 +08:00
* Fix default assistant model settings where temperature value 0 fails to trigger updates #5456 Signed-off-by: LeeSH <shuhao_lin@fzzixun.com> * fix: remove console.log Signed-off-by: LeeSH <shuhao_lin@fzzixun.com> * fix: use simple condition to tell value (#5456) *use value not equal null to tell false condition Signed-off-by: LeeSH <shuhao_lin@fzzixun.com> --------- Signed-off-by: LeeSH <shuhao_lin@fzzixun.com> Co-authored-by: Lee SH <shuhao_lin@fzzixun.com>
This commit is contained in:
parent
32d03eae30
commit
b6cb567de2
@ -47,7 +47,7 @@ const AssistantSettings: FC = () => {
|
||||
|
||||
const handleChange =
|
||||
(setter: Dispatch<SetStateAction<number>>, updater: (value: number) => void) => (value: number | null) => {
|
||||
if (!!value && !isNaN(value)) {
|
||||
if (value !== null) {
|
||||
setter(value)
|
||||
updater(value)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user