From 5a362d804818c5b30f0ed5649d55af0269347dba Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 29 Jul 2023 12:18:22 -0700 Subject: [PATCH] Fix item data not loading Oops, finder options were removed! That's fine, the `:select` on here isn't useful anyway, and I'd rather just load everything and be simpler lol --- app/controllers/swf_assets_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/swf_assets_controller.rb b/app/controllers/swf_assets_controller.rb index fd303509..efd167ec 100644 --- a/app/controllers/swf_assets_controller.rb +++ b/app/controllers/swf_assets_controller.rb @@ -14,7 +14,7 @@ class SwfAssetsController < ApplicationController json = @swf_assets.all.group_by(&:body_id) end elsif params[:pet_type_id] && params[:item_ids] - pet_type = PetType.find(params[:pet_type_id], :select => [:body_id, :species_id]) + pet_type = PetType.find(params[:pet_type_id]) @swf_assets = SwfAsset.object_assets.includes_depth. fitting_body_id(pet_type.body_id).