Update flow.rb

This commit is contained in:
Brusk Awat 2025-05-14 15:43:08 +03:00 committed by GitHub
parent 104cf38bff
commit 8eb99b2e89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,7 @@ module Workflower
end
def condition_is_met?(calling_model)
if @condition_type == "expression"
if @condition_type == "expression" && @condition.present?
evaluation_phrase = @condition.split(" ").map do |item|
if ["||", "&&", "(", ")", "=="].include?(item)