fix undefined error on integrations (#601)
This commit is contained in:
parent
8a1282f4b0
commit
46359fb127
|
|
@ -28,7 +28,7 @@ class EmailIntegration extends AbstractEmailIntegrationHandler
|
||||||
|
|
||||||
protected function shouldRun(): bool
|
protected function shouldRun(): bool
|
||||||
{
|
{
|
||||||
return $this->integrationData->send_to && parent::shouldRun() && !$this->riskLimitReached();
|
return $this->integrationData?->send_to && parent::shouldRun() && !$this->riskLimitReached();
|
||||||
}
|
}
|
||||||
|
|
||||||
// To avoid phishing abuse we limit this feature for risky users
|
// To avoid phishing abuse we limit this feature for risky users
|
||||||
|
|
@ -57,10 +57,10 @@ class EmailIntegration extends AbstractEmailIntegrationHandler
|
||||||
|
|
||||||
if ($this->form->is_pro) { // For Send to field Mentions are Pro feature
|
if ($this->form->is_pro) { // For Send to field Mentions are Pro feature
|
||||||
$formatter = (new FormSubmissionFormatter($this->form, $this->submissionData))->outputStringsOnly();
|
$formatter = (new FormSubmissionFormatter($this->form, $this->submissionData))->outputStringsOnly();
|
||||||
$parser = new MentionParser($this->integrationData->send_to, $formatter->getFieldsWithValue());
|
$parser = new MentionParser($this->integrationData?->send_to, $formatter->getFieldsWithValue());
|
||||||
$sendTo = $parser->parse();
|
$sendTo = $parser->parse();
|
||||||
} else {
|
} else {
|
||||||
$sendTo = $this->integrationData->send_to;
|
$sendTo = $this->integrationData?->send_to;
|
||||||
}
|
}
|
||||||
|
|
||||||
$recipients = collect(preg_split("/\r\n|\n|\r/", $sendTo))
|
$recipients = collect(preg_split("/\r\n|\n|\r/", $sendTo))
|
||||||
|
|
|
||||||
|
|
@ -203,7 +203,7 @@ const showIntegrationEventsModal = ref(false)
|
||||||
const loadingDelete = ref(false)
|
const loadingDelete = ref(false)
|
||||||
|
|
||||||
const actionsComponent = computed(() => {
|
const actionsComponent = computed(() => {
|
||||||
if(integrationTypeInfo.value.actions_file_name) {
|
if(integrationTypeInfo.value?.actions_file_name || false) {
|
||||||
return resolveComponent(integrationTypeInfo.value.actions_file_name)
|
return resolveComponent(integrationTypeInfo.value.actions_file_name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue