PrimeAcademy / biscayne-syllabus

1 stars 4 forks source link

Issue in Fetch in Form Edit - rendering HTML #7

Closed kristinhuot closed 1 month ago

kristinhuot commented 1 month ago

Description

I am working on the edit flight function within the my flights component. The input fields with prepopulated flight data is not appearing. Instead, HTML is showing as the response.data and the store value. The console log in my SQL query is not showing on the server. I was able to manually get the route to show by putting it into the browser, but the data is not correctly going from the Saga --> SQL --> Store.

Your Real Name Kristin

What do you want to happen?

I would like the function to correctly render the pre-populated data and input from the specific flight id that I am providing.

What is actually happening?

image

Screenshots / Code Snippets

What did you try? Who did you ask?

Googling, troubleshooting with AI, Janet, Lisa.

I was able to determine the general area of my issue through console logs. I am also wondering if not having the following in my routes is causing the problem? I was recently made aware we might need this?

const config = { headers: { 'Content-Type': 'application/json' }, withCredentials: true, }

What branch is your code on? Did you git push?

feature-edit-button

When was the last time you took a break?

20 mins ago

matthew-black commented 1 month ago

Just an annoying axios({}) vs axios.get() mistake. All good now!