Skip to content

Commit

Permalink
do not propagate name/prop recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
pmattmann committed Apr 17, 2021
1 parent a8ff61a commit b085cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Expand Up @@ -416,7 +416,7 @@ function HalJsonVuex (store: Store<Record<string, State>>, axios: AxiosInstance,
if (value._meta && value._meta.self) {
return name ? { [name.replace(/ies/, 'y') + 'Id']: value.id } : { id: value.id }
} else {
return preparePostData(value, name)
return preparePostData(value)
}
} else {
return value
Expand All @@ -434,7 +434,7 @@ function HalJsonVuex (store: Store<Record<string, State>>, axios: AxiosInstance,
if (value._meta && value._meta.self) {
return [prop + 'Id', value.id]
} else {
return [prop, preparePostData(value, prop)]
return [prop, preparePostData(value)]
}
} else {
return [prop, value]
Expand Down

0 comments on commit b085cf0

Please sign in to comment.