diff --git a/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx b/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx
index 03df72858..99fec8a2a 100644
--- a/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx
+++ b/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx
@@ -454,6 +454,8 @@ export const Editor = ({
return undefined
}, [selectedSchema, attributes])
+ const parentType = selectedSchema ? selectedSchema.type : parent
+
return (
@@ -543,25 +545,24 @@ export const Editor = ({
>
)}
-
+ {parentType && }
-
-
-
- Indexes
+ {parentType && (
+
+
+
+ Indexes
+
+
+ setValue('selectedIndex', val?.value || '')}
+ options={attributes.map((attr) => ({ label: attr.key, value: attr.key }))}
+ selectedValue={resolvedSelectedIndexValue}
+ />
+
+
-
- setValue('selectedIndex', val?.value || '')}
- options={attributes.map((attr) => ({ label: attr.key, value: attr.key }))}
- selectedValue={resolvedSelectedIndexValue}
- />
-
-
-
+ )}
{selectedSchema && (
@@ -607,7 +608,7 @@ export const Editor = ({
}
const CustomButton = styled(Button)`
- width: 100% !important;
+ width: 400px !important;
margin: 0 auto !important;
`