project_professional_portfolio
project_professional_portfolio copied to clipboard
Having issues with the work section - Errors attached
If I remove work entirely from index.js and app.js my application works completely fine...Can some please help me troubleshoot what's the problem??
For the record, I even copied the Work.jsx directly from the code on github..Thanks!
Ok so it has something to do with this statement, I believe:
{work.tags[0]}
I suppose the work tags are not in an array so it's giving me an error? If I remove the [0] - the code will work however the tags are a little messed up. So I'm lost on the ideal solution. I'll watch the work section in the video again maybe I missed something key.
If anyone can help me I'll be forever thankful!
For now I'll just delete the tag functionality - if anyone sees this in the future and knows a solution give me a shout! thanks <3
Having the same issue as you, it was actually working and then it stopped. As of now I have removed the {work.tags[0]} completely
In Sanity Studio, when you add a project, you MUST add at least one tag, or you will get this error.