Repair Dataspace.retract() cleanup of handleMap (!)

This commit is contained in:
Tony Garnock-Jones 2023-12-28 17:45:36 +13:00
parent e2e72467cd
commit 3904c626c9
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ export class Dataspace implements Partial<Entity> {
retract(handle: Handle): void {
const v = this.handleMap.get(handle);
if (v === void 0) return;
this.handleMap.delete(handle);
const is_last = this.index.removeAssertion(v, Turn.active);
this.options.tracer?.('-', v, this, is_last);
if (is_last) {