From 82be426f78449840158adab56a88aa94dfcfc2c7 Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Tue, 9 Jul 2024 18:19:34 +0800 Subject: [PATCH] fix eslint error --- app/components/chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index ace404c10..40e02cb57 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -611,7 +611,7 @@ export function ChatActions(props: { if (providerName == "ByteDance") { const selectedModel = models.find( (m) => - m.name == model && m?.provider.providerName == providerName, + m.name == model && m?.provider?.providerName == providerName, ); showToast(selectedModel?.displayName ?? ""); } else {