Skip to content

Commit 13ab795

Browse files
bug fixes
1 parent a7a354a commit 13ab795

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/cloud/components/Automations/actions/PropertySelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const PropertySelect = ({
158158
type: prop.type,
159159
subType: prop.subType,
160160
data: null,
161-
}) as SupportedType['val']
161+
})
162162
)
163163
}
164164
/>,

src/cloud/components/Automations/actions/UpdateDocActionConfigurator.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)