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 +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -406,7 +406,14 @@ var createPopulator = ({
|
|
|
406
406
|
const anchor = await internalFindById(kiosk.properties.anchor_id);
|
|
407
407
|
const units = await internalFilterByType("unit");
|
|
408
408
|
const unit = units.find(
|
|
409
|
-
(unit2) =>
|
|
409
|
+
(unit2) => {
|
|
410
|
+
try {
|
|
411
|
+
return unit2.properties.category === "walkway" && unit2.properties.level_id === kiosk.properties.level_id && booleanWithin(kiosk, unit2);
|
|
412
|
+
} catch (e) {
|
|
413
|
+
console.log(`Cannot find kiosk(${kiosk.id})'s units:`, e.message);
|
|
414
|
+
return false;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
410
417
|
);
|
|
411
418
|
let section = null;
|
|
412
419
|
if (anchor) {
|