mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
feat: preserve the title of preset.
This commit is contained in:
parent
089d99e679
commit
8720f39def
3 changed files with 4 additions and 4 deletions
|
|
@ -17,7 +17,7 @@ import store from '~/store';
|
|||
|
||||
const EditPresetDialog = ({ open, onOpenChange, preset: _preset }) => {
|
||||
// const [title, setTitle] = useState('My Preset');
|
||||
const [preset, setPreset] = useState({});
|
||||
const [preset, setPreset] = useState(_preset);
|
||||
const setPresets = useSetRecoilState(store.presets);
|
||||
|
||||
const availableEndpoints = useRecoilValue(store.availableEndpoints);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue