mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-10-01 11:41:14 +08:00
Display number of available tasks
This commit is contained in:
1 parent
8198c10a46
commit
f569c6d12b
3 files changed
+43
-22
No files matched your search
@@ -59,4 +59,4 @@ const filterAvailableTasks = (availableTasks: Partial<AvailableTasks>) =>
|
||||
Object.entries(availableTasks)
|
||||
.filter(([, count]) => count > 0)
|
||||
.sort((a, b) => b[1] - a[1])
|
||||
.map(([taskType]) => taskType) as TaskType[];
|
||||
.map(([taskType, count]) => ({ taskType, count })) as Array<{ taskType: TaskType; count: number }>;
|
||||
Reference in new issue
Block a user