Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: custom variables options are not populated (#4154)

Yunus M4644b1c20000
diff --git a/frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx b/frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx
index 4e81b0b116..408605a89b 100644
--- a/frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx
+++ b/frontend/src/container/NewDashboard/DashboardVariablesSelection/VariableItem.tsx
@@ -224,6 +224,14 @@ function VariableItem({
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [debouncedVariableValue]);
+ useEffect(() => {
+ // Fetch options for CUSTOM Type
+ if (variableData.type === 'CUSTOM') {
+ getOptions(null);
+ }
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
+
return (
<VariableContainer>
<Typography.Text className="variable-name" ellipsis>