unhosted / seven20

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error occured when deleting note

jorinvo opened this issue · comments

I logged in with an http://headhk.net account.
The data is display correctly but when I select a note in documents/notes/ and click the delete button I get the following error:

  • Uncaught Invalid path: d22120a6-9689-4e61-b302-9c9e7c865732 remoteStorage-modules-debug.js:1810
  • validPath remoteStorage-modules-debug.js:1810
  • getNodeData remoteStorage-modules-debug.js:1978
  • set remoteStorage-modules-debug.js:2764
  • BaseClient.remove remoteStorage-modules-debug.js:3049
  • (anonymous function) remoteStorage-modules-debug.js:478
  • removeObject root.js:125
  • (anonymous function) jquery.seven20.grid.js:159
  • p.extend.each jquery-1.8.0.min.js:2
  • deleteItems jquery.seven20.grid.js:156
  • (anonymous function) jquery.seven20.grid.js:262
  • p.event.dispatch jquery-1.8.0.min.js:2
  • g.handle.h jquery-1.8.0.min.js:2

This is very weird. For all items, the full paths are being displayed in the grid. Just not for those under the "documents" scope. I haven't figured out why, yet.

@nilclass looking into it now. I think it's the way that I let parts of the grid details be overridden by values in the data being populated. There is an id field for the note data and it might be overwriting the id field that originally gets populated with the full path.

I see. Yes, some modules will store "id" values. You could use "path" instead.

But then what happens if data has a 'path' field? lol. I think I need to make sure that this doesn't override on the fullpath.