@@ -42,14 +42,14 @@ const UpdateDocActionConfigurator = ({
4242 }
4343
4444 const propQueryAst =
45- configuration . info . refs . query !== null &&
45+ configuration . info . refs . query != null &&
4646 configuration . info . refs . query . type === 'constructor' &&
4747 configuration . info . refs . query . info . type === 'array'
4848 ? configuration . info . refs . query . info . refs
4949 : [ ]
5050
5151 const contentAst =
52- configuration . info . refs . content !== null &&
52+ configuration . info . refs . content != null &&
5353 configuration . info . refs . content . type === 'constructor' &&
5454 configuration . info . refs . content . info . type === 'struct'
5555 ? configuration . info . refs . content . info . refs
@@ -162,10 +162,11 @@ const UpdateDocActionConfigurator = ({
162162 < FormRow row = { { title : 'Props' } } />
163163 < PropertySelect
164164 value = {
165+ contentNodes . props != null &&
165166 contentNodes . props . type === 'constructor' &&
166167 contentNodes . props . info . type === 'record'
167168 ? ( contentNodes . props . info . refs as any )
168- : { }
169+ : [ ]
169170 }
170171 onChange = { ( props ) => setContent ( { props : RecordNode ( props ) } ) }
171172 eventDataOptions = { eventDataOptions }
@@ -190,7 +191,7 @@ function toQueryAST(
190191 value : StructNode ( {
191192 name,
192193 type : val . input . info . refs . type ,
193- value : val . input . info . refs . data ,
194+ value : val ,
194195 } ) ,
195196 rule : LiteralNode ( 'string' , 'and' ) ,
196197 } )
@@ -202,7 +203,7 @@ function toQueryAST(
202203 value : StructNode ( {
203204 name,
204205 type : LiteralNode ( 'string' , val . value . type ) ,
205- value : LiteralNode ( 'propData' , val . value . data ) ,
206+ value : LiteralNode ( 'propData' , val . value ) ,
206207 } ) ,
207208 rule : LiteralNode ( 'string' , 'and' ) ,
208209 } )
0 commit comments