feat(onboarding): compatible with json

This commit is contained in:
songkeys
2025-11-06 19:11:58 +08:00
parent 959904d72e
commit 46d8fccd2f
@@ -56,7 +56,7 @@ function FeedSelectionOperationScreen() {
.findLast((m) => m.parts?.some((p) => p.type === "tool-onboardingGetTrendingFeeds"))
?.parts?.findLast((p) => p.type === "tool-onboardingGetTrendingFeeds")?.output
return typeof output === "string" ? (decode(output) as any[]) : []
return typeof output === "string" ? (decode(output) as any[]) : (output as any[])
}, [chatMessages])
const store = useStore()