Fix a bug in drawer component

Bulk devices tasks get stuck in pendning state.
This commit is contained in:
Shweelan Samson authored and Zaid Abdulla committed 2019-06-05 00:17:36 -07:00
1 parent c3501debd5
commit 59e4fd4a3a
1 file changed
+1 -1
+1 -1
View File
@@ -51,7 +51,7 @@ export function commit(tasks, callback): Promise<void> {
for (const [deviceId, tasks2] of Object.entries(devices)) { for (const [deviceId, tasks2] of Object.entries(devices)) {
++counter; ++counter;
store store
.postTasks(deviceId, tasks) .postTasks(deviceId, tasks2)
.then(connectionRequestStatus => { .then(connectionRequestStatus => {
for (const t of tasks2) { for (const t of tasks2) {
if (t.status === "pending") t.status = "stale"; if (t.status === "pending") t.status = "stale";