Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #435 from davidradl/git427
Browse files Browse the repository at this point in the history
git427 correct time resetting
  • Loading branch information
davidradl authored Apr 29, 2022
2 parents 3c17d05 + e422d44 commit 165340e
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,16 @@ const InstancesContextProvider = (props) => {
*/
const [latestActiveGenId, setLatestActiveGenId] = useState(0);

// useEffect(() => {
// console.log(" useEffect [useHistoricalQuery]]); " + useHistoricalQuery);
useEffect(() => {
console.log(" useEffect [useHistoricalQuery]]); " + useHistoricalQuery);

// // make sure that the date and time are reset .
// setAsOfTimeStr("");
// setAsOfDate(undefined);
// // setAsOfDateTimeStr("");
// clear();
// }, [useHistoricalQuery]);
// make sure that the date and time are reset .
setAsOfTimeStr("");
setAsOfDate(undefined);
setAsOfFormattedDate(undefined);

clear();
}, [useHistoricalQuery]);

useEffect(() => {
console.log(" useEffect [asOfTimeStr, asOfDate]); ");
Expand Down

0 comments on commit 165340e

Please sign in to comment.