From 4f0d0d9634bad166b518172919c76d016b7972b4 Mon Sep 17 00:00:00 2001 From: M1kola Date: Fri, 11 Aug 2023 22:39:04 +0300 Subject: [PATCH 1/2] 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 + ) + } } > + From 433fc88f99bbb7cb078d33770b2d7889a334a24c Mon Sep 17 00:00:00 2001 From: M1kola Date: Fri, 11 Aug 2023 22:44:54 +0300 Subject: [PATCH 2/2] fix --- .../Modal/Tracker/TrackerModal/TrackerModal.jsx | 1 - src/pages/ProjectTracker/ProjectTracker.js | 16 ++++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/components/Modal/Tracker/TrackerModal/TrackerModal.jsx b/src/components/Modal/Tracker/TrackerModal/TrackerModal.jsx index 32ccdad0..23a6070d 100644 --- a/src/components/Modal/Tracker/TrackerModal/TrackerModal.jsx +++ b/src/components/Modal/Tracker/TrackerModal/TrackerModal.jsx @@ -410,7 +410,6 @@ export const TrackerModal = ({ "link", "bulletedList", "numberedList", - "blockQuote", ], removePlugins: ["BlockQuote"], placeholder: "Описание задачи", diff --git a/src/pages/ProjectTracker/ProjectTracker.js b/src/pages/ProjectTracker/ProjectTracker.js index fa46807f..32a73399 100644 --- a/src/pages/ProjectTracker/ProjectTracker.js +++ b/src/pages/ProjectTracker/ProjectTracker.js @@ -569,14 +569,14 @@ export const ProjectTracker = () => {
- { - selectedTabTask( - column.id, - projectBoard?.columns && column.tasks.length ? column.tasks.at(-1).priority + 1 : 1 - ) - } - } + onClick={() => { + selectedTabTask( + column.id, + projectBoard?.columns && column.tasks.length + ? column.tasks.at(-1).priority + 1 + : 1 + ); + }} > +