@overmap-ai/core 1.0.46-project-attachments.9 → 1.0.46-project-attachments.10

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.
@@ -3833,9 +3833,9 @@ const selectAncestorIdsOfDocument = restructureCreateSelectorWithArgs(
3833
3833
  if (!document2 || !document2.parent_document)
3834
3834
  return listOfAncestors;
3835
3835
  let currentAncestor = mapping[document2.parent_document];
3836
- while (currentAncestor && currentAncestor.parent_document) {
3836
+ while (currentAncestor) {
3837
3837
  listOfAncestors.push(currentAncestor.offline_id);
3838
- currentAncestor = mapping[currentAncestor.parent_document];
3838
+ currentAncestor = mapping[currentAncestor.parent_document ?? ""];
3839
3839
  }
3840
3840
  return listOfAncestors;
3841
3841
  })