Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
aptkingston committed Aug 13, 2024
1 parent 013f133 commit 6db20a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/builder/src/dataBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ export const getActionProviders = (
// Find the definition of the action in question, if one is provided
.map(context => ({
...context,

action: context.contexts[0].actions.find(x => x.type === actionType),
action: context.contexts[0]?.actions?.find(x => x.type === actionType),
}))
// Filter out contexts which don't have this action
.filter(({ action }) => action != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
const onSettingChange = (e, condition) => {
const setting = settings.find(x => x.key === e.detail)
if (setting?.defaultValue != null) {
condition.settingValue = setting?.defaultValue
condition.settingValue = setting.defaultValue
} else {
delete condition.settingValue
}
Expand Down

0 comments on commit 6db20a2

Please sign in to comment.