File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,9 @@ class Api {
465
465
if ( typeof orgData . model !== 'undefined' ) {
466
466
data . ai_model = orgData . model ;
467
467
}
468
- params . data = JSON . stringify ( data )
468
+ params . data = {
469
+ ai_bot : data
470
+ }
469
471
470
472
return this . patch ( `${ this . apiServer } /orgs?id=eq.` + orgId , params , {
471
473
headers : headers
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ const useStyles = makeStyles(
121
121
flexWrap : 'wrap' ,
122
122
alignItems : 'baseline' ,
123
123
'@media (max-width: 450px)' : {
124
- height : '2.25rem ' ,
124
+ height : 'auto ' ,
125
125
}
126
126
} ,
127
127
additionalInfo : {
Original file line number Diff line number Diff line change 5
5
*--------------------------------------------------------------------------
6
6
*/
7
7
8
- import React , { useState } from 'react'
8
+ import React , { useEffect , useState } from 'react'
9
9
import {
10
10
IconButton ,
11
11
TextField ,
@@ -193,6 +193,15 @@ export const SettingsDialog = (props: PublicChatDialogProps) => {
193
193
onSaveChanges ( model , visibility )
194
194
}
195
195
196
+ useEffect ( ( ) => {
197
+ if ( visibility !== defaultVisibility ) {
198
+ setVisibility ( defaultVisibility )
199
+ }
200
+ if ( model !== defaultModel ) {
201
+ setModel ( defaultModel )
202
+ }
203
+ } , [ isOpen ] ) ;
204
+
196
205
const urlField = (
197
206
< div >
198
207
< TextField
You can’t perform that action at this time.
0 commit comments