Fix a bug in drawer component
Bulk devices tasks get stuck in pendning state.
This commit is contained in:
1 parent
c3501debd5
commit
59e4fd4a3a
1 file changed
+1
-1
+1
-1
@@ -51,7 +51,7 @@ export function commit(tasks, callback): Promise<void> {
|
||||
for (const [deviceId, tasks2] of Object.entries(devices)) {
|
||||
++counter;
|
||||
store
|
||||
.postTasks(deviceId, tasks)
|
||||
.postTasks(deviceId, tasks2)
|
||||
.then(connectionRequestStatus => {
|
||||
for (const t of tasks2) {
|
||||
if (t.status === "pending") t.status = "stale";
|
||||
|
||||
Reference in new issue
Block a user