mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
fix: resolve TS error on messages.length type narrowing when loading
This commit is contained in:
1 parent
10275442ec
commit
3b492c7e78
1 file changed
+1
-1
@@ -91,7 +91,7 @@ export function useSessionAgent(
|
||||
return { agent: defaultAgent, model: undefined, variant: undefined, fromMessage: false }
|
||||
}
|
||||
|
||||
if (messagesLoading && (!messages || messages.length === 0)) {
|
||||
if (messagesLoading && !messages) {
|
||||
return resolveFallback()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user