Sub issues list fixes (#1997)

Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@xored.com>
This commit is contained in:
Sergei Ogorelkov
2022-06-03 11:11:45 +07:00
committed by GitHub
parent b6a0366c0b
commit 885ceadc86
4 changed files with 22 additions and 32 deletions
@@ -35,7 +35,6 @@
async function handleIssueSwap (ev: CustomEvent<{ fromIndex: number; toIndex: number }>) {
if (subIssues) {
const { fromIndex, toIndex } = ev.detail
console.log('index', fromIndex, toIndex)
const [prev, next] = [
subIssues[fromIndex < toIndex ? toIndex : toIndex - 1],
subIssues[fromIndex < toIndex ? toIndex + 1 : toIndex]