diff --git a/public/app/features/dashboard/utils/getPanelMenu.ts b/public/app/features/dashboard/utils/getPanelMenu.ts index 5888e29a9ed..80419a4c9a8 100644 --- a/public/app/features/dashboard/utils/getPanelMenu.ts +++ b/public/app/features/dashboard/utils/getPanelMenu.ts @@ -312,11 +312,13 @@ function truncateTitle(title: string, length: number): string { } function createExtensionContext(panel: PanelModel, dashboard: DashboardModel): PluginExtensionPanelContext { + const timeRange = Object.assign({}, dashboard.time); + return Object.freeze({ id: panel.id, pluginId: panel.type, title: panel.title, - timeRange: Object.freeze(dashboard.time), + timeRange: Object.freeze(timeRange), timeZone: dashboard.timezone, dashboard: Object.freeze({ uid: dashboard.uid,