Skip to content

Add missing allPoints property in useForecastData empty data case#46848

Closed
Copilot wants to merge 1 commit intoadd/time-series-forecast-chartfrom
copilot/sub-pr-46844
Closed

Add missing allPoints property in useForecastData empty data case#46848
Copilot wants to merge 1 commit intoadd/time-series-forecast-chartfrom
copilot/sub-pr-46844

Conversation

Copy link
Contributor

Copilot AI commented Jan 30, 2026

The useForecastData hook was missing the required allPoints property in its return value when data is empty, causing a type mismatch with UseForecastDataResult.

Changes:

  • Added allPoints: [] to the empty data case return statement in use-forecast-data.ts

The return value now correctly includes all six required properties (allPoints, historical, forecast, bandData, yDomain, xDomain) when handling empty datasets.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Update TimeSeriesForecastChart component based on feedback Add missing allPoints property in useForecastData empty data case Jan 30, 2026
Copilot AI requested a review from annacmc January 30, 2026 03:44
@annacmc annacmc closed this Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants