fix: remover filtro de status published para mostrar todos projetos
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user