@semiont/react-ui 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -47375,11 +47375,11 @@ function ReferenceEntry({
47375
47375
  };
47376
47376
  const source = typeof reference.target === "object" && "source" in reference.target ? reference.target.source : "";
47377
47377
  const handleUnlink = () => {
47378
- if (source) {
47378
+ if (source && resolvedResourceUri) {
47379
47379
  eventBus.get("bind:update-body").next({
47380
47380
  annotationId: annotationId(reference.id),
47381
47381
  resourceId: resourceId(source),
47382
- operations: [{ op: "remove" }]
47382
+ operations: [{ op: "remove", item: { type: "SpecificResource", source: resolvedResourceUri } }]
47383
47383
  });
47384
47384
  }
47385
47385
  };