mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-12 23:01:21 +00:00
fix: resolve TypeScript error in queue.ts
This commit is contained in:
parent
78bcdf4117
commit
6a15703b54
1 changed files with 6 additions and 3 deletions
|
|
@ -74,9 +74,12 @@ export async function getQueuePosition(runId: number): Promise<number | null> {
|
|||
|
||||
// Find position (1-based)
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
const queuedRun: QueuedRun = JSON.parse(items[i])
|
||||
if (queuedRun.runId === runId) {
|
||||
return i + 1
|
||||
const item = items[i]
|
||||
if (item) {
|
||||
const queuedRun: QueuedRun = JSON.parse(item)
|
||||
if (queuedRun.runId === runId) {
|
||||
return i + 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue