mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-26 05:04:29 +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(() => {
|
useEffect(() => {
|
||||||
if (currentDataSource !== initialDataSource || newPanelType !== panelType) {
|
if (currentDataSource !== initialDataSource || newPanelType !== panelType) {
|
||||||
if (panelType === PANEL_TYPES.BAR) {
|
if (newPanelType === PANEL_TYPES.BAR) {
|
||||||
handleSetConfig(PANEL_TYPES.BAR, DataSource.METRICS);
|
handleSetConfig(PANEL_TYPES.BAR, DataSource.METRICS);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user