@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.
@@ -3823,9 +3823,9 @@ var __publicField = (obj, key, value) => {
3823
3823
  if (!document2 || !document2.parent_document)
3824
3824
  return listOfAncestors;
3825
3825
  let currentAncestor = mapping[document2.parent_document];
3826
- while (currentAncestor && currentAncestor.parent_document) {
3826
+ while (currentAncestor) {
3827
3827
  listOfAncestors.push(currentAncestor.offline_id);
3828
- currentAncestor = mapping[currentAncestor.parent_document];
3828
+ currentAncestor = mapping[currentAncestor.parent_document ?? ""];
3829
3829
  }
3830
3830
  return listOfAncestors;
3831
3831
  })