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 12, 2024
1 parent bb9b32e commit 98ca48c
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 98ca48c

Please sign in to comment.