export async function getCodeFromActions()

in src/common/shared.ts [73:85]


export async function getCodeFromActions(
  electronAPI: IElectronAPI,
  steps: Steps,
  type: JourneyType
): Promise<string> {
  return electronAPI.generateCode({
    actions: steps.map(({ actions, ...rest }) => ({
      ...rest,
      actions: actions.filter(action => !(action as ActionInContext)?.isSoftDeleted),
    })),
    isProject: type === 'project',
  });
}