Skip to content

Commit

Permalink
rereun effect on model id change
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalc committed Feb 25, 2025
1 parent 892c7e3 commit 84956f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/Pages/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export default function Dashboard({ modelname }) {

};
fetchModel();
}, []);
}, [currentRunId]);

const triggerDownload = () => {
if (outputFilename != null && outputFilename != "") {
Expand Down Expand Up @@ -213,7 +213,7 @@ export default function Dashboard({ modelname }) {
}
let run_id = runDatesToJobDict[event.target.elements.run_time.value];
setCurrentRunId(run_id);
let runInfo = runs.filter((r) => r.run_id == run_id);
let runInfo = runs.find((r) => r.run_id == run_id);
const csv_filename = runInfo.output_filename;
if (csv_filename != null) {
setCurrentRunCompleted(true);
Expand Down

0 comments on commit 84956f5

Please sign in to comment.