Skip to content

Commit

Permalink
Fix a minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafasaifee42 committed Dec 6, 2024
1 parent c6bf2b8 commit 65f8d41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Components/Dashboard/SingleGraphDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export function SingleGraphDashboard(props: Props) {
);
return result;
}, [filterSettings, dataFromFile]);

useEffect(() => {
if (
graphType !== 'geoHubMap' &&
Expand All @@ -181,6 +182,7 @@ export function SingleGraphDashboard(props: Props) {
setData(filteredData);
}
}, [filteredData, graphType, dataFromFile]);

useEffect(() => {
setGraphConfig(graphDataConfiguration);
}, [graphDataConfiguration]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function VerticalStackedBarGraph(props: Props) {
language = 'en',
mode = 'light',
labelOrder,
minHeight,
minHeight = 0,
maxBarThickness,
sortParameter,
maxNumberOfBars,
Expand Down

0 comments on commit 65f8d41

Please sign in to comment.