File tree Expand file tree Collapse file tree 5 files changed +13
-7
lines changed
Expand file tree Collapse file tree 5 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -115,8 +115,8 @@ function Dashboard() {
115115 </ div >
116116 < main className = "grid gap-6 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4" >
117117 { filteredInstances . length > 0 &&
118- Array . isArray ( instances ) &&
119- instances . map ( ( instance : Instance ) => (
118+ Array . isArray ( filteredInstances ) ? (
119+ filteredInstances . map ( ( instance : Instance ) => (
120120 < Card key = { instance . id } >
121121 < CardHeader >
122122 < Link to = { `/manager/instance/${ instance . id } /dashboard` } className = "flex w-full flex-row items-center justify-between gap-4" >
@@ -167,7 +167,9 @@ function Dashboard() {
167167 </ Button >
168168 </ CardFooter >
169169 </ Card >
170- ) ) }
170+ ) ) ) :(
171+ < p > { t ( "dashboard.instancesNotFound" ) } </ p >
172+ ) }
171173 </ main >
172174
173175 { ! ! deleteConfirmation && (
Original file line number Diff line number Diff line change 33 "title" : " Instances" ,
44 "search" : " Search" ,
55 "status" : " Status" ,
6- "settings" : " Settings"
6+ "settings" : " Settings" ,
7+ "instancesNotFound" : " No instances found"
78 },
89 "button" : {
910 "delete" : " Delete" ,
Original file line number Diff line number Diff line change 33 "title" : " Instancias" ,
44 "search" : " Buscar" ,
55 "status" : " Estado" ,
6- "settings" : " Configuraciones"
6+ "settings" : " Configuraciones" ,
7+ "instancesNotFound" : " No se encontraron instancias"
78 },
89 "button" : {
910 "delete" : " Eliminar" ,
Original file line number Diff line number Diff line change 33 "title" : " Instances" ,
44 "search" : " Rechercher" ,
55 "status" : " Statut" ,
6- "settings" : " Paramètres"
6+ "settings" : " Paramètres" ,
7+ "instancesNotFound" : " Aucune instance trouvée"
78 },
89 "button" : {
910 "delete" : " Supprimer" ,
Original file line number Diff line number Diff line change 33 "title" : " Instâncias" ,
44 "search" : " Pesquisar" ,
55 "status" : " Status" ,
6- "settings" : " Configurações"
6+ "settings" : " Configurações" ,
7+ "instancesNotFound" : " Nenhuma instância encontrada"
78 },
89 "button" : {
910 "delete" : " Excluir" ,
You can’t perform that action at this time.
0 commit comments