File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tools/server/webui/src/lib/components/app/chat/ChatSettings Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 30
30
31
31
<Input
32
32
id ={field .key }
33
- value ={String (localConfig [field .key ] || ' ' )}
33
+ value ={String (localConfig [field .key ] ?? ' ' )}
34
34
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' } ` }
36
36
class ={isMobile ? ' w-full' : ' max-w-md' }
37
37
/>
38
38
{#if field .help || SETTING_CONFIG_INFO [field .key ]}
47
47
48
48
<Textarea
49
49
id ={field .key }
50
- value ={String (localConfig [field .key ] || ' ' )}
50
+ value ={String (localConfig [field .key ] ?? ' ' )}
51
51
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' } ` }
53
53
class ={isMobile ? ' min-h-[100px] w-full' : ' min-h-[100px] max-w-2xl' }
54
54
/>
55
55
{#if field .help || SETTING_CONFIG_INFO [field .key ]}
You can’t perform that action at this time.
0 commit comments