cjurgens17 / Yu-Gi-Oh

Making a Tool to Create Yugioh decks
0 stars 0 forks source link

Fix drag and drop in Deck. #1

Closed cjurgens17 closed 1 year ago

cjurgens17 commented 1 year ago

Once a card is dropped into a deck(side, extra, main), and then from there is drag and dropped an error occurs: --Uncaught Runtime Error: Unexpected end of JSON input.

Possible solution: Update the DeckPrototype to stringify/parse the image inside the deck. Currently it is being stringified/parsed in the SideScrollView.

cjurgens17 commented 1 year ago

This bug has been fixed. Reworked the consumer and producer of components so as of now, there is no more React.cloneElement, which fixed the JSON input error.