Skip to content

Commit

Permalink
Merge pull request #102 from RENCI/production-chart-fix
Browse files Browse the repository at this point in the history
Created a fix for the production header and checkboxes not appearing
  • Loading branch information
lstillwe authored Mar 14, 2024
2 parents ece091e + f6089c6 commit 134c454
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions lib/custom-ui/components/drawer/layer-details/tabs/graph-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,17 @@ export const ChartItem = ({ chartItem }) => {

export const GraphTab = ({ viewState, terria, chartItems }) => {
const { setChartItems } = useLayers();
const chartView = new ChartView(terria);
const chartItems2 = chartView.chartItems;

useEffect(() => {
setChartItems(chartItems2);
let timer1 = setTimeout(() => {
const chartView = new ChartView(terria);
const chartItems = chartView.chartItems;
setChartItems(chartItems);
}, "500");

return () => {
clearTimeout(timer1);
};
}, []);

return (
Expand Down
4 changes: 2 additions & 2 deletions wwwroot/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"initializationUrls": [
"https://apsviz-ui-data-dev.apps.renci.org/get_ui_data_file?file_name=apsviz2.json"
"https://apsviz-ui-data.apps.renci.org/get_ui_data_file?file_name=apsviz2.json"
],
"parameters": {
"bingMapsKey": "AonD5sr-4zO6vqCNY-RMerq7qOLMOFDd1BsYZbGdZLE9zP3lbGLsX-BVwH8dTqxh",
Expand Down Expand Up @@ -156,7 +156,7 @@
}
],
"plugins": {
"dataFilterURL": "https://apsviz-ui-data-dev.apps.renci.org/get_ui_data?",
"dataFilterURL": "https://apsviz-ui-data.apps.renci.org/get_ui_data?",
"hurricaneIconsURL": "https://apsviz-fileserver-dev.apps.renci.org/terria-map/icons/",
"bannerImages": ["images/aps-logo.png", "images/nopp-logo.png"],
"attributionImages": [
Expand Down

0 comments on commit 134c454

Please sign in to comment.