mirror of
https://github.com/ditkrg/jsonapi-deserializable.git
synced 2026-01-22 13:56:50 +00:00
Fix deserialization bug in JSONAPI deserializable resource
This commit is contained in:
parent
2c4418d5ec
commit
65826973f0
@ -189,7 +189,7 @@ module JSONAPI
|
||||
|
||||
register_mappings(hash.keys, "/relationships/#{key}")
|
||||
|
||||
if options.[](:with_included)
|
||||
if options.[](:with_included) && id.present? && type.present?
|
||||
return {**hash, key.to_sym => find_in_included(id:, type:)}
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user