Answer
There’s two things at work:
First you have the tool set to shape, and then you have the fill set to black. You can leave it on Shape but change the fill to empty. Or you can change it from Shape to Path.
Update
You at some point made it a Shape. So you’ve got two options. Either set the Fill to Empty. Or in that path panel click Create New Path on the bottom. Now go to the Shape Path and using the Path Selection Tool (Black Arrow) select your shaped path and do copy. Then switch to the newly created empty path and click paste. Then delete the shape one.
Attribution
Source : Link , Question Author : user121321 , Answer Author : Ryan