fix report sort
This commit is contained in:
@@ -29,8 +29,8 @@
|
|||||||
|
|
||||||
$reports = $reports.toSorted(
|
$reports = $reports.toSorted(
|
||||||
(a, b) =>
|
(a, b) =>
|
||||||
['open', 'closed', null].indexOf(a.status?.status ?? null) -
|
[null, 'open', 'closed'].indexOf(a.status?.status ?? null) -
|
||||||
['open', 'closed', null].indexOf(b.status?.status ?? null)
|
[null, 'open', 'closed'].indexOf(b.status?.status ?? null)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user