mirror of
https://github.com/ducbao414/win32.run.git
synced 2025-12-15 08:42:49 +09:00
fix: worker not being called to work on sorting
This commit is contained in:
@@ -51,7 +51,7 @@ onmessage = async ({data}) => {
|
||||
return elm[option_key];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let sorted_items = sort(items).by([predicate]);
|
||||
|
||||
postMessage({id, sorted_items, type: 'sorted'})
|
||||
|
||||
@@ -53,6 +53,8 @@
|
||||
last_sort_tx_hash = hash;
|
||||
worker.postMessage({type: 'sort', hash, ...hash_object});
|
||||
}
|
||||
} else {
|
||||
last_sort_tx_hash = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user