mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix: Rename timezones prop to timezone for plugins compatibility (#53926)
This commit is contained in:
@@ -126,7 +126,7 @@ export const StatusHistoryPanel: React.FC<TimelinePanelProps> = ({
|
||||
[timeZone, frames, shouldDisplayCloseButton]
|
||||
);
|
||||
|
||||
const timezones = useMemo(() => getTimezones(options.timezones, timeZone), [options.timezones, timeZone]);
|
||||
const timezones = useMemo(() => getTimezones(options.timezone, timeZone), [options.timezone, timeZone]);
|
||||
|
||||
if (!frames || warn) {
|
||||
return (
|
||||
@@ -154,7 +154,7 @@ export const StatusHistoryPanel: React.FC<TimelinePanelProps> = ({
|
||||
frames={frames}
|
||||
structureRev={data.structureRev}
|
||||
timeRange={timeRange}
|
||||
timeZones={timezones}
|
||||
timeZone={timezones}
|
||||
width={width}
|
||||
height={height}
|
||||
legendItems={legendItems}
|
||||
|
||||
Reference in New Issue
Block a user