fix: stop checking empty action/trigger input in updateStep

This commit is contained in:
Ali BARIN
2023-03-13 22:11:42 +00:00
parent ab486c8ed1
commit cc90f19a46

View File

@@ -40,6 +40,8 @@ class App {
static async checkAppAndAction(appKey: string, actionKey: string): Promise<void> {
const app = await this.findOneByKey(appKey);
if (!actionKey) return;
const hasAction = app.actions?.find(action => action.key === actionKey);
if (!hasAction) {
@@ -50,6 +52,8 @@ class App {
static async checkAppAndTrigger(appKey: string, triggerKey: string): Promise<void> {
const app = await this.findOneByKey(appKey);
if (!triggerKey) return;
const hasTrigger = app.triggers?.find(trigger => trigger.key === triggerKey);
if (!hasTrigger) {