fix: use first project type as actual project type
This commit is contained in:
parent
e31197f649
commit
8c5ee6d218
@ -287,8 +287,10 @@ const typeFiltered = computed(() => {
|
|||||||
const projectType = filterMap[currentFilterType.value];
|
const projectType = filterMap[currentFilterType.value];
|
||||||
if (!projectType) return baseFiltered.value;
|
if (!projectType) return baseFiltered.value;
|
||||||
|
|
||||||
return baseFiltered.value.filter((queueItem) =>
|
return baseFiltered.value.filter(
|
||||||
queueItem.project.project_types.includes(projectType),
|
(queueItem) =>
|
||||||
|
queueItem.project.project_types.length > 0 &&
|
||||||
|
queueItem.project.project_types[0] === projectType,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user