venue-js 1.3.0-next.2 → 1.3.0-next.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.js CHANGED
@@ -489,7 +489,14 @@ var createPopulator = ({
489
489
  const anchor = await internalFindById(kiosk.properties.anchor_id);
490
490
  const units = await internalFilterByType("unit");
491
491
  const unit = units.find(
492
- (unit2) => unit2.properties.category === "walkway" && unit2.properties.level_id === kiosk.properties.level_id && (0, import_boolean_within.booleanWithin)(kiosk, unit2)
492
+ (unit2) => {
493
+ try {
494
+ return unit2.properties.category === "walkway" && unit2.properties.level_id === kiosk.properties.level_id && (0, import_boolean_within.booleanWithin)(kiosk, unit2);
495
+ } catch (e) {
496
+ console.log(`Cannot find kiosk(${kiosk.id})'s units:`, e.message);
497
+ return false;
498
+ }
499
+ }
493
500
  );
494
501
  let section = null;
495
502
  if (anchor) {