fix report sort
This commit is contained in:
1 parent
46e0ad1fc6
commit
ab3e4bd543
1 file changed
+2
-2
@@ -29,8 +29,8 @@
|
||||
|
||||
$reports = $reports.toSorted(
|
||||
(a, b) =>
|
||||
['open', 'closed', null].indexOf(a.status?.status ?? null) -
|
||||
['open', 'closed', null].indexOf(b.status?.status ?? null)
|
||||
[null, 'open', 'closed'].indexOf(a.status?.status ?? null) -
|
||||
[null, 'open', 'closed'].indexOf(b.status?.status ?? null)
|
||||
);
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user