Skip to content

Commit

Permalink
fix link strategy to return nil when value is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Nov 11, 2024
1 parent fd63524 commit 804986d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/custom_value/link_strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

class CustomValue::LinkStrategy < CustomValue::FormatStrategy
def typed_value
formatted_value
formatted_value if value.present?
end

def parse_value(val)
Expand Down

0 comments on commit 804986d

Please sign in to comment.