mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-22 19:05:56 -04:00
Ensure project ID is always a number
This commit is contained in:
parent
95766fd68a
commit
f1fde9e5f8
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue