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(() => {
|
useEffect(() => {
|
||||||
// switch to query builder if query type is not supported
|
// switch to query builder if query type is not supported
|
||||||
if (
|
if (
|
||||||
selectedGraph === PANEL_TYPES.TABLE &&
|
(selectedGraph === PANEL_TYPES.TABLE || selectedGraph === PANEL_TYPES.PIE) &&
|
||||||
currentQuery.queryType === EQueryType.PROM
|
currentQuery.queryType === EQueryType.PROM
|
||||||
) {
|
) {
|
||||||
handleQueryCategoryChange(EQueryType.QUERY_BUILDER);
|
handleQueryCategoryChange(EQueryType.QUERY_BUILDER);
|
||||||
|
@ -517,11 +517,7 @@ export const PANEL_TYPE_TO_QUERY_TYPES: Record<PANEL_TYPES, EQueryType[]> = {
|
|||||||
EQueryType.CLICKHOUSE,
|
EQueryType.CLICKHOUSE,
|
||||||
EQueryType.PROM,
|
EQueryType.PROM,
|
||||||
],
|
],
|
||||||
[PANEL_TYPES.PIE]: [
|
[PANEL_TYPES.PIE]: [EQueryType.QUERY_BUILDER, EQueryType.CLICKHOUSE],
|
||||||
EQueryType.QUERY_BUILDER,
|
|
||||||
EQueryType.CLICKHOUSE,
|
|
||||||
EQueryType.PROM,
|
|
||||||
],
|
|
||||||
[PANEL_TYPES.HISTOGRAM]: [
|
[PANEL_TYPES.HISTOGRAM]: [
|
||||||
EQueryType.QUERY_BUILDER,
|
EQueryType.QUERY_BUILDER,
|
||||||
EQueryType.CLICKHOUSE,
|
EQueryType.CLICKHOUSE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user