From 3f52611f937ff631e814213ce1d5945cd1253d75 Mon Sep 17 00:00:00 2001 From: Dan Gleason Date: Tue, 3 Jan 2023 15:07:27 -0500 Subject: [PATCH] updated comments --- pages/contributors.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/contributors.js b/pages/contributors.js index 9800868..2e5b591 100755 --- a/pages/contributors.js +++ b/pages/contributors.js @@ -282,7 +282,7 @@ const CSV = () => { email: email, submitted: submitted, submission: submission, - picture: picture, // starts as an empty string + picture: pictureSubmitted, // starts as an empty string notes: notes, }; @@ -392,7 +392,12 @@ const CSV = () => { listType="picture" className="avatar-uploader" showUploadList={false} - action='api/upload' // POST request to this api endpoint for picture + action='api/upload' // POST request to this api endpoint for picture upload --> need to make pictureSubmitted == true in the new record created + /* via --> + setEditingStudent((pre) => { + return { ...pre, picture: true }; + }); + */ onChange={handleChangeUpload} >