To update your component code, you can click on the "edit" icon from the list of components
Edit the code and choose between two options:
1. Create new version
Keep the old version of the component if you think you might need it.
Click "next", copy image or use the old one, then save as you are creating new component.
2. Force update
Replace the old version with the new code and update all pages that contain that version.