Skip to content

Commit

Permalink
fix: svg cache (#3480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob authored Dec 3, 2024
1 parent 2278f19 commit d5cab89
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/avo/svg_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ def pathname
found_asset = default_strategy

# Use the found asset
return found_asset if found_asset.present?

paths.find do |path|
File.exist? path
if found_asset.present?
found_asset
else
paths.find do |path|
File.exist? path
end
end
end
end
Expand Down

0 comments on commit d5cab89

Please sign in to comment.