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" });
if (res.ok) {
const data = await res.json();
// Filtrar apenas projetos publicados
const published = data.filter((p: Project) => p.status === "published");
setProjects(published);
// Mostrar todos os projetos (status pode ser "Em andamento" ou "Concluído")
setProjects(data);
}
} catch (error) {
console.error("Erro ao carregar projetos:", error);