Skip to content

Commit

Permalink
Fix session init
Browse files Browse the repository at this point in the history
  • Loading branch information
jcraigk committed Sep 20, 2023
1 parent 2047792 commit ed31df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/playlists_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def clear_session

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

def shuffle_tracks
Expand Down

0 comments on commit ed31df0

Please sign in to comment.