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

This commit is contained in:
Yunus M 2023-12-05 16:09:50 +05:30 committed by GitHub
parent bb09c84679
commit 4644b1c200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>