Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ButteryCrumpet committed Feb 24, 2022
1 parent a7a354a commit 13ab795
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const PropertySelect = ({
type: prop.type,
subType: prop.subType,
data: null,
}) as SupportedType['val']
})
)
}
/>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ const UpdateDocActionConfigurator = ({
}

const propQueryAst =
configuration.info.refs.query !== null &&
configuration.info.refs.query != null &&
configuration.info.refs.query.type === 'constructor' &&
configuration.info.refs.query.info.type === 'array'
? configuration.info.refs.query.info.refs
: []

const contentAst =
configuration.info.refs.content !== null &&
configuration.info.refs.content != null &&
configuration.info.refs.content.type === 'constructor' &&
configuration.info.refs.content.info.type === 'struct'
? configuration.info.refs.content.info.refs
Expand Down Expand Up @@ -162,10 +162,11 @@ const UpdateDocActionConfigurator = ({
<FormRow row={{ title: 'Props' }} />
<PropertySelect
value={
contentNodes.props != null &&
contentNodes.props.type === 'constructor' &&
contentNodes.props.info.type === 'record'
? (contentNodes.props.info.refs as any)
: {}
: []
}
onChange={(props) => setContent({ props: RecordNode(props) })}
eventDataOptions={eventDataOptions}
Expand All @@ -190,7 +191,7 @@ function toQueryAST(
value: StructNode({
name,
type: val.input.info.refs.type,
value: val.input.info.refs.data,
value: val,
}),
rule: LiteralNode('string', 'and'),
})
Expand All @@ -202,7 +203,7 @@ function toQueryAST(
value: StructNode({
name,
type: LiteralNode('string', val.value.type),
value: LiteralNode('propData', val.value.data),
value: LiteralNode('propData', val.value),
}),
rule: LiteralNode('string', 'and'),
})
Expand Down

0 comments on commit 13ab795

Please sign in to comment.