Ensure project ID is always a number

This commit is contained in:
Paul Kaplan 2021-05-10 10:23:13 -04:00
parent 95766fd68a
commit f1fde9e5f8

View file

@ -46,7 +46,7 @@ const loadProjects = () => ((dispatch, getState) => {
*/
const generateProjectListItem = (postBody, infoBody) => ({
// Fields from the POST to add the project to the studio
id: postBody.projectId,
id: parseInt(postBody.projectId, 10),
actor_id: postBody.actorId,
// Fields from followup GET for more project info
title: infoBody.title,