Fix closet list petpage export

I uhhh don't know why this ever worked at all lmao. Simple fix, I'd
been avoiding it for a while assuming it was worse lol!
This commit is contained in:
Emi Matchu 2023-11-06 12:55:03 -08:00
parent 47ea796af4
commit 562cc33045

View file

@ -70,7 +70,8 @@ class ClosetHangersController < ApplicationController
def petpage def petpage
# Find all closet lists, and also the hangers of the visible closet lists # Find all closet lists, and also the hangers of the visible closet lists
closet_lists = @user.closet_lists.select([:id, :name, :hangers_owned]).alphabetical closet_lists = @user.closet_lists.select([
:id, :name, :hangers_owned, :description]).alphabetical
if params[:filter] if params[:filter]
# If user specified which lists should be visible, restrict to those # If user specified which lists should be visible, restrict to those
if params[:lists] && params[:lists].respond_to?(:keys) if params[:lists] && params[:lists].respond_to?(:keys)