fix eslint error
This commit is contained in:
parent
9d2a633f5e
commit
82be426f78
|
@ -611,7 +611,7 @@ export function ChatActions(props: {
|
||||||
if (providerName == "ByteDance") {
|
if (providerName == "ByteDance") {
|
||||||
const selectedModel = models.find(
|
const selectedModel = models.find(
|
||||||
(m) =>
|
(m) =>
|
||||||
m.name == model && m?.provider.providerName == providerName,
|
m.name == model && m?.provider?.providerName == providerName,
|
||||||
);
|
);
|
||||||
showToast(selectedModel?.displayName ?? "");
|
showToast(selectedModel?.displayName ?? "");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue