Compare commits

..

1 Commits

Author SHA1 Message Date
Calum H.
8c5ee6d218 fix: use first project type as actual project type 2025-08-06 13:03:48 +01:00
2 changed files with 5 additions and 8 deletions

View File

@ -143,13 +143,8 @@ export default defineNuxtConfig({
state.lastGenerated &&
new Date(state.lastGenerated).getTime() + TTL > new Date().getTime() &&
// ...but only if the API URL is the same
state.apiUrl === API_URL &&
// ...and if no errors were caught during the last generation
(state.errors ?? []).length === 0
state.apiUrl === API_URL
) {
console.log(
"Tags already recently generated. Delete apps/frontend/generated/state.json to force regeneration.",
);
return;
}

View File

@ -287,8 +287,10 @@ const typeFiltered = computed(() => {
const projectType = filterMap[currentFilterType.value];
if (!projectType) return baseFiltered.value;
return baseFiltered.value.filter((queueItem) =>
queueItem.project.project_types.includes(projectType),
return baseFiltered.value.filter(
(queueItem) =>
queueItem.project.project_types.length > 0 &&
queueItem.project.project_types[0] === projectType,
);
});