project_professional_portfolio icon indicating copy to clipboard operation
project_professional_portfolio copied to clipboard

Having issues with the work section - Errors attached

Open MackGrissom opened this issue 2 years ago • 4 comments

image 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!

MackGrissom avatar Mar 18 '22 04:03 MackGrissom

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!

MackGrissom avatar Mar 18 '22 04:03 MackGrissom

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

MackGrissom avatar Mar 18 '22 04:03 MackGrissom

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

luespinal03 avatar Nov 04 '22 05:11 luespinal03

In Sanity Studio, when you add a project, you MUST add at least one tag, or you will get this error.

jenperez613 avatar Jun 04 '23 05:06 jenperez613