Closed frankcollins3 closed 1 year ago
👍 if (!mySettings.start_time) { 👍 if (!mySettings)
forgot to access the array index of the filter data let mySettings = allsettings.filter(settings => settings.users_id === id)
thought this worked but would return .create data: not the falsy block data which was the corresponding user data
[1:52am]
the else block somehow activates for an id of three, of which there is none in the database. 👎 return { id, weight, height, age, start_time, end_time, reminder, activity, users_id } = mySettings[0]
clientside invocation:
psql table showing there isn't an id of 3