mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboards: Fixes week relative time ranges when weekStart was changed (#98167)
* Dashborads: Fixes week relative time ranges when weekStart was changed * Fix * Update
This commit is contained in:
parent
29db5a9d8a
commit
02aded2743
@ -149,6 +149,11 @@ jest.mock('@grafana/runtime', () => ({
|
||||
getPluginLinkExtensions: jest.fn(),
|
||||
}));
|
||||
|
||||
jest.mock('@grafana/data', () => ({
|
||||
...jest.requireActual('@grafana/data'),
|
||||
setWeekStart: jest.fn(),
|
||||
}));
|
||||
|
||||
const getPluginLinkExtensionsMock = jest.mocked(getPluginLinkExtensions);
|
||||
|
||||
jest.mock('@grafana/scenes', () => ({
|
||||
|
@ -123,9 +123,7 @@ export class GeneralSettingsEditView
|
||||
};
|
||||
|
||||
public onWeekStartChange = (value: string) => {
|
||||
this.getTimeRange().setState({
|
||||
weekStart: value,
|
||||
});
|
||||
this.getTimeRange().setState({ weekStart: value });
|
||||
};
|
||||
|
||||
public onRefreshIntervalChange = (value: string[]) => {
|
||||
|
Loading…
Reference in New Issue
Block a user