fix: prevent model list corruption from SolidJS reactivity (#6359)

Co-authored-by: Joachim Isaksson <joachim.isaksson@centiro.com>
This commit is contained in:
Joachim Isaksson
2025-12-30 06:45:15 +01:00
committed by GitHub
parent d426c61a45
commit 2164464699
2 changed files with 13 additions and 4 deletions
@@ -150,7 +150,7 @@ export function DialogModel(props: { providerID?: string }) {
(item) => item.providerID === value.providerID && item.modelID === value.modelID,
)
if (inFavorites) return false
const inRecents = recents.some(
const inRecents = recentList.some(
(item) => item.providerID === value.providerID && item.modelID === value.modelID,
)
if (inRecents) return false