You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can grab the new revision number from the responseText, like so:
response.responseText
This will return a value, like 80291, that then needs to be passed to pvjs so that it knows what the current version is in order to support additional edits.
Doable?
The text was updated successfully, but these errors were encountered:
To solve this, we need to follow the pvjson through being created, updated in editor and then updated after saving. We have multiple ways we're storing the pvjson, partly because we don't have the pvjson-to-GPML converter working yet. So for now, we just need to make sure we're updating the right pvjson. For long term, we should be sure we only have a single active pvjson and either 1) a single "original" pvjson before the edits or 2) a revision history that allows for "undo" functionality.
At this point in the code:
https://github.com/wikipathways/pvjs/blob/master/lib/editor/editor.js#L185
You can grab the new revision number from the responseText, like so:
This will return a value, like 80291, that then needs to be passed to pvjs so that it knows what the current version is in order to support additional edits.
Doable?
The text was updated successfully, but these errors were encountered: