didmar / visible-thoughts-writer

Interface for Visible Thoughts dataset creation
https://visible-thoughts-writer.web.app/
MIT License
0 stars 0 forks source link

Composer component saving content with wrong section type #15

Closed didmar closed 1 year ago

didmar commented 1 year ago

Describe the bug The composer component is sometimes set with the wrong section type, such as composing a prompt with the YBRText data structure. This causes the data to be stored in the step document with the wrong structure and ultimately makes the application crash when reloading. This happens when pasting content from another section type.

To Reproduce Copy content from a different section type.

Expected behavior The composer should always be set with the appropriate section type. Copy/pasting from a different section type should result in pasting raw text.

Screenshots image