Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Period from actions response should be used as fallback for download. #854

Merged

Conversation

ekkelenkamp
Copy link
Collaborator

No description provided.

function determineViewPeriod(): string {
const _options = toValue(viewPeriodFromStore)
let viewPeriod: string = ''
const startDate: Date | null | undefined = props.startTime
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that either null or undefined would be sufficient

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

startTime from props and options may be of Date, null or undefined. Would have to change there implementation as well, which has a impact on usages of UseTimeSeriesOptions. So even though it is probably better, i don't take it is part of this issue. I will leave it as is for now.

}
return `${dateTime.date}T${dateTime.time}Z`
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return dateTime?${dateTime.date}T${dateTime.time}Z:dateTime perhaps

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. Changed it.

@grijzea grijzea merged commit 55c9409 into main May 6, 2024
8 checks passed
@grijzea grijzea deleted the DWO-721-Data_Download,_does_not_download_for_complete_period branch May 6, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants