Skip to content

Changed jogging record to reference API jogging data#2

Open
tnraddatz wants to merge 1 commit into
oktadev:masterfrom
tnraddatz:patch-1
Open

Changed jogging record to reference API jogging data#2
tnraddatz wants to merge 1 commit into
oktadev:masterfrom
tnraddatz:patch-1

Conversation

@tnraddatz

Copy link
Copy Markdown

When a NEW jogging record was created, the previous implementation of this.joggingData.push(jogging) would use the jogging record from the angular form, instead of using the jogging record being returned from the backend API. This resulted in jogging records being pushed to the JoggingData array that did NOT contain a valid Id, "undefined". This change allows a user to edit and delete newly created jogging records without having to refresh the window to update the record id using a get request.

When a NEW jogging record was created, the previous implementation of the createOrUpdateJogging() would use the jogging record  from the angular form, instead of using the jogging record being returned from the backend API. This resulted in jogging records being pushed to the JoggingData array that did NOT contain a valid Id, "undefined".  This change allows a user to edit and delete newly created jogging records without having to refresh the window to pull the Id from a get request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant