PR feedback
This commit is contained in:
parent
013f13315c
commit
6db20a241b
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue