Skip to content

Commit

Permalink
Update time to saved visualizations time when redirect to edit view (#…
Browse files Browse the repository at this point in the history
…570)

Signed-off-by: Eugene Lee <[email protected]>
  • Loading branch information
eugenesk24 authored Mar 10, 2022
1 parent 6cd3e89 commit 2407086
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,13 @@ export const Explorer = ({
const currQuery = appLogEvents
? objectData?.query.replace(appBaseQuery + '| ', '')
: objectData?.query || '';

if (appLogEvents) {
if (objectData?.selected_date_range?.start && objectData?.selected_date_range?.end) {
setStartTime(objectData.selected_date_range.start);
setEndTime(objectData.selected_date_range.end);
}
}

// update redux
batch(async () => {
Expand Down

0 comments on commit 2407086

Please sign in to comment.