From b8239eecbe6d36941a5ddd8e5b08c33a04d06c53 Mon Sep 17 00:00:00 2001 From: Sean Edmunds Date: Thu, 8 Jan 2026 12:57:39 -0600 Subject: [PATCH] Bug fix --- src/pages/settings/components/Applications/Applications.tsx | 2 +- src/pages/settings/components/Messages/Messages.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/settings/components/Applications/Applications.tsx b/src/pages/settings/components/Applications/Applications.tsx index 109597d..92fd4c4 100644 --- a/src/pages/settings/components/Applications/Applications.tsx +++ b/src/pages/settings/components/Applications/Applications.tsx @@ -56,7 +56,7 @@ const ApplicationSettings = () => { }); const applications: Application[] = applicationData - .filter( + ?.filter( (a: Application) => a.name.toLowerCase().includes((debouncedSearch as string).toLowerCase()) || a.url.toLowerCase().includes((debouncedSearch as string).toLowerCase()) || diff --git a/src/pages/settings/components/Messages/Messages.tsx b/src/pages/settings/components/Messages/Messages.tsx index 66607f1..f1d9f41 100644 --- a/src/pages/settings/components/Messages/Messages.tsx +++ b/src/pages/settings/components/Messages/Messages.tsx @@ -34,7 +34,7 @@ const MessageSettings = () => { const { isMobile, theme } = useCommonHooks(); const { mutateAsync } = useMutationAPI(); const messages = - messageData.filter((m: Message) => + messageData?.filter((m: Message) => m.message.toLowerCase().includes((debouncedSearch as string).toLowerCase()), ) || []; const [message, setMessage] = useState({});