You've already forked AstralRinth
forked from didirus/AstralRinth
fix: use first project type as actual project type (#4128)
This commit is contained in:
@@ -286,8 +286,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,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user