diff --git a/src/components/ModalsContainer/BlueprintModal/Body/Editor/MediaOptions/index.tsx b/src/components/ModalsContainer/BlueprintModal/Body/Editor/MediaOptions/index.tsx
index c829ebd02..699ce65bc 100644
--- a/src/components/ModalsContainer/BlueprintModal/Body/Editor/MediaOptions/index.tsx
+++ b/src/components/ModalsContainer/BlueprintModal/Body/Editor/MediaOptions/index.tsx
@@ -9,9 +9,10 @@ type MediaOptionKey = 'videoAudio' | 'image' | 'sourceLink'
type MediaOptionsProps = {
setMediaOptions: (options: { videoAudio: boolean; image: boolean; sourceLink: boolean }) => void
initialOptions: { videoAudio: boolean; image: boolean; sourceLink: boolean }
+ setSubmitDisabled: (disabled: boolean) => void
}
-const MediaOptions = ({ setMediaOptions, initialOptions }: MediaOptionsProps) => {
+const MediaOptions = ({ setMediaOptions, initialOptions, setSubmitDisabled }: MediaOptionsProps) => {
const [mediaOptions, setLocalMediaOptions] = useState(initialOptions)
useEffect(() => {
@@ -26,6 +27,7 @@ const MediaOptions = ({ setMediaOptions, initialOptions }: MediaOptionsProps) =>
}
setMediaOptions(newOptions)
+ setSubmitDisabled(false)
return newOptions
})
diff --git a/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx b/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx
index b77a7499f..d1ce772a0 100644
--- a/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx
+++ b/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx
@@ -590,7 +590,11 @@ export const Editor = ({
onDelete={handleDeleteAttribute}
parent={selectedSchema ? selectedSchema.type : parent}
/>
-
+