diff --git a/frontend/src/container/FormAlertRules/index.tsx b/frontend/src/container/FormAlertRules/index.tsx
index 023d6fc294..7b80b2150c 100644
--- a/frontend/src/container/FormAlertRules/index.tsx
+++ b/frontend/src/container/FormAlertRules/index.tsx
@@ -369,21 +369,7 @@ function FormAlertRules({
/>
);
- const renderPromChartPreview = (): JSX.Element => (
-
- }
- name="Chart Preview"
- query={stagedQuery}
- alertDef={alertDef}
- />
- );
-
- const renderChQueryChartPreview = (): JSX.Element => (
+ const renderPromAndChQueryChartPreview = (): JSX.Element => (
{currentQuery.queryType === EQueryType.QUERY_BUILDER &&
renderQBChartPreview()}
- {currentQuery.queryType === EQueryType.PROM && renderPromChartPreview()}
+ {currentQuery.queryType === EQueryType.PROM &&
+ renderPromAndChQueryChartPreview()}
{currentQuery.queryType === EQueryType.CLICKHOUSE &&
- renderChQueryChartPreview()}
+ renderPromAndChQueryChartPreview()}