|
@@ -536,7 +536,7 @@ export const getMetadata: GetMetadataFunction<KeyValueArrayMetadata> = (
|
|
|
state: KeyValueArrayFieldState
|
|
state: KeyValueArrayFieldState
|
|
|
) => {
|
|
) => {
|
|
|
// We don't need any metadata for other key-value-array fields yet so we return null for that variable
|
|
// We don't need any metadata for other key-value-array fields yet so we return null for that variable
|
|
|
- if (!props?.variable?.includes("env")) {
|
|
|
|
|
|
|
+ if (!state || !props?.variable?.includes("env")) {
|
|
|
return {
|
|
return {
|
|
|
[props.variable]: null,
|
|
[props.variable]: null,
|
|
|
};
|
|
};
|