1
0
Fork 0
forked from OpenNeo/impress

Oops, return an array in the all-bodies case

I was returning just the body itself, oops! For consistency with the
general return value, it should be a one-element array.
This commit is contained in:
Emi Matchu 2023-11-11 07:58:50 -08:00
parent 133895b213
commit eaab0b1922

View file

@ -526,7 +526,7 @@ class Item < ApplicationRecord
# If there are no body-specific assets, return one appearance for them all.
if swf_assets_by_body_id.empty?
return Appearance.new(:all, swf_assets_for_all_bodies)
return [Appearance.new(:all, swf_assets_for_all_bodies)]
end
# Otherwise, create an appearance for each real (nonzero) body ID. We don't