Skip to content

Commit

Permalink
remove useless func def
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredamiron committed Dec 7, 2023
1 parent bf55e36 commit eb3bf2a
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ export default function SimulationResults({
}
}, [extViewport]);

const onChangeXScaleDomain = (newDomain: number[] | Date[]) => {
setChartXScaleDomain(newDomain);
};

return simulation.trains.length === 0 && !isUpdating ? (
<h1 className="text-center mt-5">{t('noData')}</h1>
) : (
Expand Down Expand Up @@ -144,7 +140,7 @@ export default function SimulationResults({
selectedTrainId={selectedTrain?.id || simulation.trains[0].id}
trains={simulation.trains as SimulationReport[]}
timePosition={timePosition}
onChangeXScaleDomain={onChangeXScaleDomain}
onChangeXScaleDomain={setChartXScaleDomain}
/>
)}

Expand Down

0 comments on commit eb3bf2a

Please sign in to comment.