gawati / gawati-editor-ui

Gawati Client
GNU Affero General Public License v3.0
0 stars 0 forks source link

Saving a document results in a reload of the page without the document loaded #28

Closed kohsah closed 6 years ago

kohsah commented 6 years ago

When a document is saved for the first item (during add), it gets reloaded and the document does not reload, on checking responses:

{"error":{"code":"doc_not_found","message":"document not found"}}

When the request is made the document has not yet completed save, so the load returns document not found.

kohsah commented 6 years ago

This error is not becuase of aync saves .. .when the doc is saved the page is reloaded with this iri:

http://localhost:3000/_lang/en/document/edit/ident/_iri/akn/mg/act/legge/1994-11-17/LOI_N%C2%B094-025/fra@/!main

and when its listed on the dashboard - with this one:

http://localhost:3000/_lang/en/document/edit/ident/_iri/akn/mg/act/legge/1994-11-16/LOI_N%C2%B094-025/fra@/!main

THe wrong official date is set in the IRI when refreshed though the correct one is used in the dashboard listing

kohsah commented 6 years ago

Fixed