Skip to content

Commit

Permalink
Ease into new session format
Browse files Browse the repository at this point in the history
  • Loading branch information
jcraigk committed Sep 20, 2023
1 parent a178baf commit 2047792
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/playlists_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ def clear_session
end

def init_session
return if session[:playlist].is_a?(Hash) # Ease into new session format
session[:playlist] ||= EMPTY_PLAYLIST.dup
end

Expand Down

0 comments on commit 2047792

Please sign in to comment.