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 }) => {
const { release } = state;
const milestones = release.milestones ? release.milestones.map(milestone => milestone.title) : [];
const updatedRelease = convertObjectPropsToSnakeCase(
{
name: release.name,
description: release.description,
milestones,
},
{ deep: true },
);
return (
api
.updateRelease(state.projectId, state.tagName, {
name: release.name,
description: release.description,
milestones,
})
.updateRelease(state.projectId, state.tagName, updatedRelease)
/**
* 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