mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 04:31:27 +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
aaf396f83a
commit
d571c46aad
@ -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