tracker fix
This commit is contained in:
parent
fe2c45cb22
commit
3a832cc78d
@ -536,9 +536,6 @@ export const TicketFullScreen = () => {
|
||||
></TrackerModal>
|
||||
|
||||
<div className="tasks__head__persons">
|
||||
{projectInfo.projectUsers?.length > 3 && (
|
||||
<span className="countPersons">+1...</span>
|
||||
)}
|
||||
<div className="projectPersons">
|
||||
{projectInfo.projectUsers?.length &&
|
||||
projectInfo.projectUsers.slice(0, 3).map((person) => {
|
||||
@ -555,6 +552,9 @@ export const TicketFullScreen = () => {
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
{projectInfo.projectUsers?.length > 3 && (
|
||||
<span className="countPersons">+1</span>
|
||||
)}
|
||||
<span
|
||||
className="addPerson"
|
||||
onClick={() => {
|
||||
|
@ -541,7 +541,7 @@
|
||||
.exit {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
top: 36px;
|
||||
right: 20px;
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
|
@ -368,9 +368,6 @@ export const ProjectTracker = () => {
|
||||
: "tasks__head__persons noProjectUsers"
|
||||
}
|
||||
>
|
||||
{projectBoard.projectUsers?.length > 3 && (
|
||||
<span className="countPersons">+1...</span>
|
||||
)}
|
||||
{Boolean(projectBoard.projectUsers?.length) && (
|
||||
<div className="projectPersons">
|
||||
{projectBoard.projectUsers.slice(0, 3).map((person) => {
|
||||
@ -388,6 +385,9 @@ export const ProjectTracker = () => {
|
||||
})}
|
||||
</div>
|
||||
)}
|
||||
{projectBoard.projectUsers?.length > 3 && (
|
||||
<span className="countPersons">+1</span>
|
||||
)}
|
||||
<span
|
||||
className="addPerson"
|
||||
onClick={() => {
|
||||
|
@ -70,8 +70,8 @@ export const Tracker = () => {
|
||||
apiRequest(
|
||||
`/task/get-user-tasks?user_id=${localStorage.getItem("id")}`
|
||||
).then((el) => {
|
||||
const allTasks = el.filter((item) => item.status !== 0);
|
||||
const completedTasks = el.filter((item) => item.status === 0);
|
||||
const allTasks = el ? el.filter((item) => item.status !== 0) : [];
|
||||
const completedTasks = el ? el.filter((item) => item.status === 0) : [];
|
||||
setAllTasks(allTasks);
|
||||
setFilteredAllTasks(allTasks);
|
||||
setAllCompletedTasks(completedTasks);
|
||||
@ -178,7 +178,7 @@ export const Tracker = () => {
|
||||
|
||||
{loader && <Loader style="green" />}
|
||||
|
||||
{Boolean(projects.length) &&
|
||||
{projects && Boolean(projects.length) &&
|
||||
!loader &&
|
||||
projects.map((project, index) => {
|
||||
return project.status !== 10 ? (
|
||||
@ -187,7 +187,7 @@ export const Tracker = () => {
|
||||
""
|
||||
);
|
||||
})}
|
||||
{(!Boolean(projects.length) ||
|
||||
{typeof projects === "object" && (!Boolean(projects.length) ||
|
||||
!Boolean(
|
||||
projects.filter((project) => project.status !== 10).length
|
||||
)) &&
|
||||
@ -215,7 +215,7 @@ export const Tracker = () => {
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{Boolean(projects.length) && !loader && (
|
||||
{projects && Boolean(projects.length) && !loader && (
|
||||
<>
|
||||
<BaseButton
|
||||
styles="createProjectBtn"
|
||||
|
@ -321,7 +321,7 @@
|
||||
.projectPersons {
|
||||
display: flex;
|
||||
position: relative;
|
||||
left: -10px;
|
||||
left: 5px;
|
||||
img {
|
||||
position: relative;
|
||||
display: flex;
|
||||
@ -358,7 +358,7 @@
|
||||
color: #252c32;
|
||||
border: 1px solid #dde2e4;
|
||||
background: white;
|
||||
left: -6px;
|
||||
left: -20px;
|
||||
}
|
||||
|
||||
.addPerson {
|
||||
|
Loading…
Reference in New Issue
Block a user