diff --git a/resources/js/components/Dashboard/AdminView/Components/OrganizationsAlert.vue b/resources/js/components/Dashboard/AdminView/Components/OrganizationsAlert.vue index 5feb852600b799eeb017cd55d0ce22e7e1cc7f43..4d9bfbd2c86d680928e847e91b746fd0e876e361 100644 --- a/resources/js/components/Dashboard/AdminView/Components/OrganizationsAlert.vue +++ b/resources/js/components/Dashboard/AdminView/Components/OrganizationsAlert.vue @@ -67,7 +67,9 @@ export default { {...territory, organizations : territory.organizations .map( org => ({...org, - evaluations : this.evaluations.filter( e => e.organization_id === org.id).sort( (a,b) => new Date(b.updated_at) - new Date(a.updated_at)) , + evaluations : this.evaluations.filter( e => e.organization_id === org.id) + .filter( e => e.status === 2) + .sort( (a,b) => new Date(b.updated_at) - new Date(a.updated_at)) , })) .filter(org => org.active) })