diff --git a/client/src/components/Chat/Messages/Content/Markdown.tsx b/client/src/components/Chat/Messages/Content/Markdown.tsx index ee134b0e53..c0664adfe7 100644 --- a/client/src/components/Chat/Messages/Content/Markdown.tsx +++ b/client/src/components/Chat/Messages/Content/Markdown.tsx @@ -150,7 +150,7 @@ export const a: React.ElementType = memo(({ href, children }: TAnchorProps) => { return ( {children} diff --git a/client/src/components/Endpoints/EndpointIcon.tsx b/client/src/components/Endpoints/EndpointIcon.tsx index b727b28bf8..f635388f0e 100644 --- a/client/src/components/Endpoints/EndpointIcon.tsx +++ b/client/src/components/Endpoints/EndpointIcon.tsx @@ -63,7 +63,6 @@ export default function EndpointIcon({ isCreatedByUser={false} chatGptLabel={undefined} modelLabel={undefined} - jailbreak={undefined} /> ); } diff --git a/client/src/components/Prompts/Groups/GroupSidePanel.tsx b/client/src/components/Prompts/Groups/GroupSidePanel.tsx index 84a5c3a7a5..5cfd77ec2a 100644 --- a/client/src/components/Prompts/Groups/GroupSidePanel.tsx +++ b/client/src/components/Prompts/Groups/GroupSidePanel.tsx @@ -24,7 +24,7 @@ export default function GroupSidePanel({ } & ReturnType) { const location = useLocation(); const isSmallerScreen = useMediaQuery('(max-width: 1024px)'); - const isChatRoute = useMemo(() => location.pathname.startsWith('/c/'), [location.pathname]); + const isChatRoute = useMemo(() => location.pathname?.startsWith('/c/'), [location.pathname]); return (
}) const file = row.original; return (
- {file?.type.startsWith('image') === true ? ( + {file?.type?.startsWith('image') === true ? ( = ({ const rangeRef = useRef(null); const id = `model-parameter-${ariaLabel.toLowerCase().replace(/\s+/g, '-')}`; - const displayLabel = label.startsWith('com_') ? localize(label as TranslationKeys) : label; + const displayLabel = + label && label.startsWith('com_') ? localize(label as TranslationKeys) : label; const getDecimalPlaces = (num: number) => { const match = ('' + num).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);