fix issue where the first relationship of a type wouldn't be added

This commit is contained in:
Art Lowel
2020-04-02 10:22:08 +02:00
parent 6dbc2ef880
commit 29e6f6f72f
10 changed files with 82 additions and 7 deletions

View File

@@ -65,6 +65,14 @@ export class JsonPatchOperationsBuilder {
}
}
/**
* Dispatch a new NewPatchMoveOperationAction
*
* @param path
* the new path tho move to
* @param prevPath
* the original path to move from
*/
move(path: JsonPatchOperationPathObject, prevPath: string) {
this.store.dispatch(
new NewPatchMoveOperationAction(