@@ -42,14 +42,14 @@ const UpdateDocActionConfigurator = ({
42
42
}
43
43
44
44
const propQueryAst =
45
- configuration . info . refs . query !== null &&
45
+ configuration . info . refs . query != null &&
46
46
configuration . info . refs . query . type === 'constructor' &&
47
47
configuration . info . refs . query . info . type === 'array'
48
48
? configuration . info . refs . query . info . refs
49
49
: [ ]
50
50
51
51
const contentAst =
52
- configuration . info . refs . content !== null &&
52
+ configuration . info . refs . content != null &&
53
53
configuration . info . refs . content . type === 'constructor' &&
54
54
configuration . info . refs . content . info . type === 'struct'
55
55
? configuration . info . refs . content . info . refs
@@ -162,10 +162,11 @@ const UpdateDocActionConfigurator = ({
162
162
< FormRow row = { { title : 'Props' } } />
163
163
< PropertySelect
164
164
value = {
165
+ contentNodes . props != null &&
165
166
contentNodes . props . type === 'constructor' &&
166
167
contentNodes . props . info . type === 'record'
167
168
? ( contentNodes . props . info . refs as any )
168
- : { }
169
+ : [ ]
169
170
}
170
171
onChange = { ( props ) => setContent ( { props : RecordNode ( props ) } ) }
171
172
eventDataOptions = { eventDataOptions }
@@ -190,7 +191,7 @@ function toQueryAST(
190
191
value : StructNode ( {
191
192
name,
192
193
type : val . input . info . refs . type ,
193
- value : val . input . info . refs . data ,
194
+ value : val ,
194
195
} ) ,
195
196
rule : LiteralNode ( 'string' , 'and' ) ,
196
197
} )
@@ -202,7 +203,7 @@ function toQueryAST(
202
203
value : StructNode ( {
203
204
name,
204
205
type : LiteralNode ( 'string' , val . value . type ) ,
205
- value : LiteralNode ( 'propData' , val . value . data ) ,
206
+ value : LiteralNode ( 'propData' , val . value ) ,
206
207
} ) ,
207
208
rule : LiteralNode ( 'string' , 'and' ) ,
208
209
} )
0 commit comments