Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
0x43
eBookHub-frontend
Commits
6f9024cc
Commit
6f9024cc
authored
Apr 14, 2019
by
Mycha de Vrees
Browse files
small fix for mapresponse
parent
18b656ab
Pipeline
#366
passed with stage
in 1 minute and 27 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/transformers/Transformer.js
View file @
6f9024cc
...
...
@@ -57,7 +57,7 @@ function _mapResponse (response) {
for
(
const
key
in
include
.
relationships
)
{
if
(
Object
.
hasOwnProperty
.
call
(
include
.
relationships
,
key
)
&&
include
.
relationships
[
key
].
data
&&
include
.
relationships
[
key
].
data
.
length
>
0
)
{
obj
.
authors
=
_fetchIncludes
({
obj
[
key
]
=
_fetchIncludes
({
relation
:
include
,
response
,
type
:
key
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment