HappenApps / Quiver

Quiver documentation and issue tracker
2.26k stars 109 forks source link

BUG: "Move to Notebook..." loses note content #489

Open dev-jjc opened 8 years ago

dev-jjc commented 8 years ago

I created a new notebook to hold several notes sitting in the Inbox. I did a bulk-move of the notes by highlighting all of the notes and clicking the "Move to Notebook..." button. When I opened the notes within the new notebook the title and tags had been preserved but all of the content cells (markdown cells, in this case) in the body had been lost :-(

ylian commented 8 years ago

That's weird. I just tried and can't reproduce it. It seems more likely that a certain note has invalid html tags in the Markdown, which might have broken the editor/preview. Switch to another note, quit and reopen the app, it might work again. If you found indeed a particular note breaks the editor/preview, send it to me so I can fix.

dev-jjc commented 8 years ago

Re-opening the app did not fix it.

Then I examined the content.json for the note:

{
  "title": "My Note",
  "cells": [
    {
      "type": "text",
      "data": ""
    }
  ]
}

So it does not seem to be just a problem with the rendering. Another thing to point out: my note contained a single Markdown cell, but that doesn't seem to be reflected in the JSON.

If I can construct a note that causes the issue reliably I will add it to the bug tracker.

ylian commented 8 years ago

I see. Did this happen to one note or all the notes you moved?

dev-jjc commented 8 years ago

It happened to 4 of the 17 notes I moved.

ylian commented 8 years ago

I see. I think one of the 4 notes triggered an error in the editor, and the app mistakenly saved the broken state.

If you have your Quiver library on Dropbox or Google Drive or other backup, you can restore those 4 notes. If you could restore them, please send them to me so I can fix this bug.