From 4f0d0d9634bad166b518172919c76d016b7972b4 Mon Sep 17 00:00:00 2001 From: M1kola Date: Fri, 11 Aug 2023 22:39:04 +0300 Subject: [PATCH] fix --- src/pages/ProjectTracker/ProjectTracker.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/pages/ProjectTracker/ProjectTracker.js b/src/pages/ProjectTracker/ProjectTracker.js index 6daf15d2..fa46807f 100644 --- a/src/pages/ProjectTracker/ProjectTracker.js +++ b/src/pages/ProjectTracker/ProjectTracker.js @@ -570,13 +570,12 @@ export const ProjectTracker = () => { - selectedTabTask( - column.id, - projectBoard?.columns - ? projectBoard?.columns[0].tasks.at(-1) - .priority + 1 - : 1 - ) + { + selectedTabTask( + column.id, + projectBoard?.columns && column.tasks.length ? column.tasks.at(-1).priority + 1 : 1 + ) + } } > +