Co-authored-by: orca-bug-scan-bot <orca-bug-scan-bot@stably.ai>
This commit is contained in:
parent
0b60feb9db
commit
e2322c7d68
|
|
@ -131,7 +131,9 @@ export const createDetectedAgentsSlice: StateCreator<AppState, [], [], DetectedA
|
|||
return get().detectedAgentIds ?? []
|
||||
})
|
||||
.finally(() => {
|
||||
refreshPromise = null
|
||||
if (refreshPromise?.promise === pending) {
|
||||
refreshPromise = null
|
||||
}
|
||||
})
|
||||
refreshPromise = { key: contextKey, promise: pending }
|
||||
return pending
|
||||
|
|
|
|||
Loading…
Reference in New Issue