diff --git a/src/OpenStreetBrowserLoader.js b/src/OpenStreetBrowserLoader.js index 4b163a1b..921fad08 100644 --- a/src/OpenStreetBrowserLoader.js +++ b/src/OpenStreetBrowserLoader.js @@ -45,7 +45,8 @@ class OpenStreetBrowserLoader { opt.categoryId = ids.entityId opt.repositoryId = ids.repositoryId - this.getRepo(ids.repositoryId, opt, function (err, repoData) { + this.getRepository(ids.repositoryId, opt, (err, repository) => { + const repoData = repository.data // maybe loaded in the meantime? if (ids.fullId in this.categories) { return callback(null, this.categories[ids.fullId]) diff --git a/src/addCategories.js b/src/addCategories.js index 840e0b85..a800f017 100644 --- a/src/addCategories.js +++ b/src/addCategories.js @@ -24,11 +24,13 @@ function addCategoriesShow (repo, options={}) { content.innerHTML = '