Explorar el Código

fix eslint error

lloydzhou hace 1 año
padre
commit
82be426f78
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/components/chat.tsx

+ 1 - 1
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 {