Skip to content

Commit

Permalink
feat: keep new value within the reset function when user save new thr…
Browse files Browse the repository at this point in the history
…ead setting
  • Loading branch information
urmauur committed Jan 4, 2024
1 parent 2a90cac commit 4c67e50
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/screens/Chat/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ const Sidebar: React.FC = () => {
const componentDataRuntimeSetting = getConfigurationsData(modelRuntimeParams)
const setThreadSettingFormUpdate = useSetAtom(threadSettingFormUpdateAtom)

// console.log(componentDataRuntimeSetting)

const componentData = [
...[
{ name: 'title', controllerData: { value: activeThread?.title } },
Expand Down Expand Up @@ -206,7 +204,7 @@ const Sidebar: React.FC = () => {
threadId,
filterChangedFormFields(values, form.formState.dirtyFields)
)
form.reset()
form.reset({}, { keepValues: true })
}
}

Expand Down

0 comments on commit 4c67e50

Please sign in to comment.