Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
hotfix #1357
Browse files Browse the repository at this point in the history
  • Loading branch information
wiadev committed Dec 2, 2017
1 parent 7bca9cb commit 43e0828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions/GenericActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function getViewAttributes (
);
}

function getPathRequestPayload(property, value) {
function getPatchRequestPayload(property, value) {
let payload = [];
if (Array.isArray(property) && value !== undefined) {
payload = property.map(item => ({
Expand All @@ -105,7 +105,7 @@ export function patchViewAttributes(
property,
value
) {
const payload = getPathRequestPayload(property, value);
const payload = getPatchRequestPayload(property, value);

return axios.patch(
config.API_URL +
Expand Down

0 comments on commit 43e0828

Please sign in to comment.