Update panel type on selecting new panel on dashboards. (#4634)

This commit is contained in:
Rajat Dabade 2024-03-01 13:04:53 +05:30 committed by GitHub
parent 1aaafa4638
commit 97fdba0fae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ export const QueryBuilder = memo(function QueryBuilder({
useEffect(() => {
if (currentDataSource !== initialDataSource || newPanelType !== panelType) {
if (panelType === PANEL_TYPES.BAR) {
if (newPanelType === PANEL_TYPES.BAR) {
handleSetConfig(PANEL_TYPES.BAR, DataSource.METRICS);
return;
}