mirror of
https://github.com/dkam/paapi.git
synced 2025-12-28 07:04:53 +00:00
Fix get_variations items is empty
This commit is contained in:
@@ -10,6 +10,7 @@ module Paapi
|
|||||||
|
|
||||||
@items_data = @hash.dig('ItemsResult', 'Items')
|
@items_data = @hash.dig('ItemsResult', 'Items')
|
||||||
@items_data ||= @hash.dig('SearchResult', 'Items')
|
@items_data ||= @hash.dig('SearchResult', 'Items')
|
||||||
|
@items_data ||= @hash.dig('VariationsResult', 'Items')
|
||||||
@items_data ||= []
|
@items_data ||= []
|
||||||
|
|
||||||
@items = @items_data.map {|d| Item.new(d)}
|
@items = @items_data.map {|d| Item.new(d)}
|
||||||
|
|||||||
Reference in New Issue
Block a user