fix: remover filtro de status published para mostrar todos projetos

This commit is contained in:
Erik
2025-11-27 17:30:25 -03:00
parent 7f7c635efd
commit 5ecff30584

View File

@@ -26,9 +26,8 @@ export default function ProjetosPage() {
const res = await fetch("/api/projects", { cache: "no-store" }); const res = await fetch("/api/projects", { cache: "no-store" });
if (res.ok) { if (res.ok) {
const data = await res.json(); const data = await res.json();
// Filtrar apenas projetos publicados // Mostrar todos os projetos (status pode ser "Em andamento" ou "Concluído")
const published = data.filter((p: Project) => p.status === "published"); setProjects(data);
setProjects(published);
} }
} catch (error) { } catch (error) {
console.error("Erro ao carregar projetos:", error); console.error("Erro ao carregar projetos:", error);