Commit 9b51b782 authored by Nathan Friend's avatar Nathan Friend

Convert release props to snake_case

This commit ensures all props are properly converted to snake_case
before being submitted to the API.
parent 7519a312
...@@ -57,13 +57,18 @@ export const updateRelease = ({ dispatch, state, getters }) => { ...@@ -57,13 +57,18 @@ export const updateRelease = ({ dispatch, state, getters }) => {
const { release } = state; const { release } = state;
const milestones = release.milestones ? release.milestones.map(milestone => milestone.title) : []; const milestones = release.milestones ? release.milestones.map(milestone => milestone.title) : [];
return ( const updatedRelease = convertObjectPropsToSnakeCase(
api {
.updateRelease(state.projectId, state.tagName, {
name: release.name, name: release.name,
description: release.description, description: release.description,
milestones, milestones,
}) },
{ deep: true },
);
return (
api
.updateRelease(state.projectId, state.tagName, updatedRelease)
/** /**
* Currently, we delete all existing links and then * Currently, we delete all existing links and then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment