mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-24 19:04:28 +08:00
Update panel type on selecting new panel on dashboards. (#4634)
This commit is contained in:
parent
1aaafa4638
commit
97fdba0fae
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user