mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-06-04 11:25:52 +08:00
chore: hide promql from panel type - pie (#6140)
This commit is contained in:
parent
4b79d3b785
commit
b03fadc2ec
@ -214,7 +214,7 @@ function QuerySection({
|
||||
useEffect(() => {
|
||||
// switch to query builder if query type is not supported
|
||||
if (
|
||||
selectedGraph === PANEL_TYPES.TABLE &&
|
||||
(selectedGraph === PANEL_TYPES.TABLE || selectedGraph === PANEL_TYPES.PIE) &&
|
||||
currentQuery.queryType === EQueryType.PROM
|
||||
) {
|
||||
handleQueryCategoryChange(EQueryType.QUERY_BUILDER);
|
||||
|
@ -517,11 +517,7 @@ export const PANEL_TYPE_TO_QUERY_TYPES: Record<PANEL_TYPES, EQueryType[]> = {
|
||||
EQueryType.CLICKHOUSE,
|
||||
EQueryType.PROM,
|
||||
],
|
||||
[PANEL_TYPES.PIE]: [
|
||||
EQueryType.QUERY_BUILDER,
|
||||
EQueryType.CLICKHOUSE,
|
||||
EQueryType.PROM,
|
||||
],
|
||||
[PANEL_TYPES.PIE]: [EQueryType.QUERY_BUILDER, EQueryType.CLICKHOUSE],
|
||||
[PANEL_TYPES.HISTOGRAM]: [
|
||||
EQueryType.QUERY_BUILDER,
|
||||
EQueryType.CLICKHOUSE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user