There was an error while loading. Please reload this page.
1 parent a04a7a9 commit cc079d7Copy full SHA for cc079d7
1 file changed
studio/schemas/objects/textBlock.tsx
@@ -119,12 +119,14 @@ export default {
119
of: [
120
configureBlockContent({ variant: 'textBlock' }),
121
// This enables the image upload/paste block
122
- Flags.IS_DEV
123
- ? defineArrayMember({
124
- type: 'image',
125
- options: { hotspot: true },
126
- })
127
- : false,
+ ...(Flags.IS_DEV
+ ? [
+ {
+ type: 'image',
+ options: { hotspot: true },
+ },
128
+ ]
129
+ : []),
130
],
131
},
132
{
0 commit comments