Interactive interface for browsing global, full-resolution satellite imagery
set featured tab to third position
Jason Kent6e050a1e3ed3
diff --git a/web/js/components/layer/product-picker/product-picker.js b/web/js/components/layer/product-picker/product-picker.jsindex 769f56f7c..414f3b107 100644--- a/web/js/components/layer/product-picker/product-picker.js+++ b/web/js/components/layer/product-picker/product-picker.js@@ -32,16 +32,12 @@ import { ModalBody, ModalHeader, Nav, NavItem, NavLink } from 'reactstrap';class ProductPicker extends React.Component {constructor(props) {super(props);- const categoryType = Object.keys(props.categoryConfig)[0];- const category = props.categoryConfig[categoryType].All;- const selectedMeasurement = category.measurements[0];- const selectedMeasurementId = props.measurementConfig[selectedMeasurement].id;this.state = {- listType: 'measurements',- categoryType,- category,- selectedMeasurement: selectedMeasurementId,+ listType: props.listType,+ categoryType: Object.keys(props.categoryConfig)[1],+ category: props.category,+ selectedMeasurement: null,filteredRows: props.filteredRows,inputValue: ''};@@ -187,9 +183,9 @@ class ProductPicker extends React.Component {const isCategoryDisplay = listType === 'category' && selectedProjection === 'geographic';const showCategoryTabs = isCategoryDisplay || categoryType === 'featured';const categoryKeys = [- 'featured','hazards and disasters',- 'scientific'+ 'scientific',+ 'featured'];return (