editorjs-blocks-react-renderer icon indicating copy to clipboard operation
editorjs-blocks-react-renderer copied to clipboard

fix: prevent crash when version is missing in data using optional chaining

Open Sam-nnnn opened this issue 1 year ago • 1 comments

Sam-nnnn avatar Oct 10 '24 15:10 Sam-nnnn

I believe the 'version' field should be optional because, according to the source code in the OutputData interface (as seen here), the 'version' property is not marked as required. This suggests that there may be cases where the 'version' field is absent, and the code should handle such cases gracefully.

This is my first contribution, so if I've missed anything or need to address any other points, I would really appreciate your guidance. Thank you for your time!

Sam-nnnn avatar Oct 10 '24 16:10 Sam-nnnn