File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
webui/src/lib/components/app/chat/ChatSettings Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3030
3131 <Input
3232 id ={field .key }
33- value ={String (localConfig [field .key ] || ' ' )}
33+ value ={String (localConfig [field .key ] ?? ' ' )}
3434 onchange ={(e ) => onConfigChange (field .key , e .currentTarget .value )}
35- placeholder ={` Default: ${SETTING_CONFIG_DEFAULT [field .key ] || ' none' } ` }
35+ placeholder ={` Default: ${SETTING_CONFIG_DEFAULT [field .key ] ?? ' none' } ` }
3636 class ={isMobile ? ' w-full' : ' max-w-md' }
3737 />
3838 {#if field .help || SETTING_CONFIG_INFO [field .key ]}
4747
4848 <Textarea
4949 id ={field .key }
50- value ={String (localConfig [field .key ] || ' ' )}
50+ value ={String (localConfig [field .key ] ?? ' ' )}
5151 onchange ={(e ) => onConfigChange (field .key , e .currentTarget .value )}
52- placeholder ={` Default: ${SETTING_CONFIG_DEFAULT [field .key ] || ' none' } ` }
52+ placeholder ={` Default: ${SETTING_CONFIG_DEFAULT [field .key ] ?? ' none' } ` }
5353 class ={isMobile ? ' min-h-[100px] w-full' : ' min-h-[100px] max-w-2xl' }
5454 />
5555 {#if field .help || SETTING_CONFIG_INFO [field .key ]}
You can’t perform that action at this time.
0 commit comments