|
|
@ -60,7 +60,7 @@ export function Panel({ width, height, timeRange, eventBus, timeZone }: Props) { |
|
|
|
|
|
|
|
|
|
|
|
const [panelStatus, setPanelStatus] = useState<PanelStatus>(PanelStatus.LOADING); |
|
|
|
const [panelStatus, setPanelStatus] = useState<PanelStatus>(PanelStatus.LOADING); |
|
|
|
function setPanelStatusWithValidate(status: PanelStatus): void { |
|
|
|
function setPanelStatusWithValidate(status: PanelStatus): void { |
|
|
|
if (panelStatus === PanelStatus.DATASOURCE_ERROR || panelStatus === PanelStatus.PERMISSION_ERROR) { |
|
|
|
if (panelStatus === PanelStatus.PERMISSION_ERROR) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
return setPanelStatus(status); |
|
|
|
return setPanelStatus(status); |
|
|
|