File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Plan/react/dashboard/src/components Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,14 @@ import {Card} from "react-bootstrap";
3
3
import CardHeader from "../CardHeader" ;
4
4
import { faWifi } from "@fortawesome/free-solid-svg-icons" ;
5
5
import PingTable from "../../table/PingTable" ;
6
+ import { ChartLoader } from "../../navigation/Loader" ;
6
7
7
8
const PingTableCard = ( { data} ) => {
8
9
return (
9
10
< Card id = { 'ping-per-country' } >
10
11
< CardHeader icon = { faWifi } color = "green" label = { 'html.label.connectionInfo' } />
11
- < PingTable countries = { data ?. table || [ ] } />
12
+ { data && < PingTable countries = { data ?. table || [ ] } /> }
13
+ { ! data && < ChartLoader /> }
12
14
</ Card >
13
15
)
14
16
} ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const PingTable = ({countries}) => {
30
30
</ tr >
31
31
</ thead >
32
32
< tbody >
33
- { countries . length ? countries . map ( ( country , i ) => < PingRow key = { i } country = { country } /> ) : < tr >
33
+ { countries . length ? countries . map ( country => < PingRow key = { country ?. country } country = { country } /> ) : < tr >
34
34
< td > { t ( 'generic.noData' ) } </ td >
35
35
< td > -</ td >
36
36
< td > -</ td >
You can’t perform that action at this time.
0 commit comments