mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 21:35:58 +08:00
fix: custom variables options are not populated (#4154)
This commit is contained in:
parent
bb09c84679
commit
4644b1c200
@ -224,6 +224,14 @@ function VariableItem({
|
|||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [debouncedVariableValue]);
|
}, [debouncedVariableValue]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
// Fetch options for CUSTOM Type
|
||||||
|
if (variableData.type === 'CUSTOM') {
|
||||||
|
getOptions(null);
|
||||||
|
}
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<VariableContainer>
|
<VariableContainer>
|
||||||
<Typography.Text className="variable-name" ellipsis>
|
<Typography.Text className="variable-name" ellipsis>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user