Skip to content

NoMethodError when removing a step from a campaign #225

@rathboma

Description

@rathboma

I removed a step from a campaign, but now I get the following error in the background cron job:

NoMethodError: undefined method `action' for nil:NilClass

It's happening at this line:

step.action.new(user: user, step: step).deliver_now

      def perform(_campaign, user, step)
        step.action.new(user: user, step: step).deliver_now
      end

step is nil, so this fails.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions