The original behaviour was not showing any change on Dashboard if any Country with "insufficient data" is selected.
Eg:
South Africa with dataset All had 44 genomes => Visible changes on dashboard
South Africa with dataset local had 0 genomes => NO Visible changes on dashboard
South Africa with dataset travel had 1 genomes => Visible changes on dashboard
In this PR, We set condition if any country is selected from Map, show data on Dashboard, where We need list of all the countries in Select country dropdown which are available on Map, So we have to make static countries provided by react-simple-maps as its not going to change.
Now :
South Africa with dataset All had 44 genomes => Visible changes on dashboard
South Africa with dataset local had 0 genomes => Visible changes on dashboard
South Africa with dataset travel had 1 genomes => Visible changes on dashboard
Updated plot 4, if No data to show then remove default selection behaviour
Eg: South Africa with dataset All had 44 genomes => Visible changes on dashboard South Africa with dataset local had 0 genomes => NO Visible changes on dashboard South Africa with dataset travel had 1 genomes => Visible changes on dashboard
In this PR, We set condition if any country is selected from Map, show data on Dashboard, where We need list of all the countries in Select country dropdown which are available on Map, So we have to make static countries provided by react-simple-maps as its not going to change. Now : South Africa with dataset All had 44 genomes => Visible changes on dashboard South Africa with dataset local had 0 genomes => Visible changes on dashboard South Africa with dataset travel had 1 genomes => Visible changes on dashboard