Compare origin ids in item.integrate

This commit is contained in:
Kevin Jahns
2019-04-06 15:55:20 +02:00
parent 1b17b5e400
commit c635963747
5 changed files with 36 additions and 9 deletions

View File

@@ -125,6 +125,16 @@ export const find = (store, id) => {
return structs[findIndexSS(structs, id.clock)]
}
/**
* Expects that id is actually in store. This function throws or is an infinite loop otherwise.
*
* @param {StructStore} store
* @param {ID} id
* @return {AbstractItem}
*/
// @ts-ignore
export const getItem = (store, id) => find(store, id)
/**
* Expects that id is actually in store. This function throws or is an infinite loop otherwise.
*