I made a simple change in css and js in my files, everything was working fine and then the whole website started acting weird. All the global variables stopped fetching, I checked the theme editor settings all the colors are mentioned accurately but those weren’t fetching into the code.
I hope you did make a duplicate of theme first to make edits, if not you should always do it even if it’s the smallest of edits unless ofcourse your store isn’t live yet and you don’t make changes often, then it’s fine.
You can actually now from the theme code editor open the timeline tab from the bottom left and revert or roll back to the time before you made any changes.