Skip to content

Commit

Permalink
Merge branch 'GEOLYTIX:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
cityremade authored Apr 17, 2024
2 parents 581b843 + 3449e72 commit 1bcd1f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions public/tests/layer.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ export async function layerTest(mapview) {

const lastLocation = await mapp.utils.xhr(`${mapp.host}/api/query?template=get_last_location&locale=${encodeURIComponent(mapview.locale.key)}&layer=${key}`);

assertTrue(lastLocation.id !== undefined, 'Last Location is undefined');

if (lastLocation.id) {
if (lastLocation?.id) {

layer.infoj = layer.infoj.map(entry => {
if(entry.type === 'dataview'){
Expand All @@ -54,6 +52,7 @@ export async function layerTest(mapview) {
id: lastLocation.id,
});

assertTrue(location !== undefined, 'The location is undefined');
//await delayFunction(3000);
location.remove();
}
Expand Down

0 comments on commit 1bcd1f5

Please sign in to comment.