🔖 fix: Remove Local State from Bookmark Menu (#5181)

* chore: remove redundant

* fix: bookmark menu statefulness by removing local state
This commit is contained in:
Danny Avila 2025-01-04 12:01:13 -05:00 committed by GitHub
parent 7c61115a88
commit 766657da83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 24 additions and 26 deletions

View file

@ -2,7 +2,7 @@ import { useRecoilState } from 'recoil';
import { Settings2 } from 'lucide-react';
import { Root, Anchor } from '@radix-ui/react-popover';
import { useState, useEffect, useMemo } from 'react';
import { tPresetUpdateSchema, EModelEndpoint, isParamEndpoint } from 'librechat-data-provider';
import { tConvoUpdateSchema, EModelEndpoint, isParamEndpoint } from 'librechat-data-provider';
import type { TPreset, TInterfaceConfig } from 'librechat-data-provider';
import { EndpointSettings, SaveAsPresetDialog, AlternativeSettings } from '~/components/Endpoints';
import { PluginStoreDialog, TooltipAnchor } from '~/components';
@ -123,7 +123,7 @@ export default function HeaderOptions({
open={saveAsDialogShow}
onOpenChange={setSaveAsDialogShow}
preset={
tPresetUpdateSchema.parse({
tConvoUpdateSchema.parse({
...conversation,
}) as TPreset
}