lib/rapa/resources/item_resource.rb in rapa-0.3.2 vs lib/rapa/resources/item_resource.rb in rapa-0.3.3
- old
+ new
@@ -345,10 +345,12 @@
if source[key]
source[key]
else
image_set = source.dig("ImageSets", "ImageSet")
image_set = image_set.first if image_set.is_a?(::Array)
- image_set[key]
+ if image_set
+ image_set[key]
+ end
end
end
# @private
# @return [Hash, nil]