Skip to content

Commit

Permalink
Update app/controllers/editor_controller.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Tilda Udufo <mathildaudufo@gmail.com>
  • Loading branch information
AlphaRomeoMike and TildaDares committed Oct 25, 2022
1 parent 07ed51d commit 6b0efce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/editor_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def rich
@main_image = Image.find_by(id: params[:main_image]).path
end

if params[:tags]&.include? "lat:" && params[:tags]&.include? "lon:"
if params[:tags]&.include?('lat:') && params[:tags]&.include?('lon:')
tags = params[:tags].split(',')
tags.each do |x|
x.include? "lat:" && (@lat = x.split(':')[1])
Expand Down

0 comments on commit 6b0efce

Please sign in to comment.