Browse Source

index: don't load different repo, when 'repo' not in state

master
parent
commit
9a7d4d3fe2
  1. 2
      src/index.js

2
src/index.js

@ -185,7 +185,7 @@ global.allMapFeatures = function (callback) {
window.setPath = function (path, state) {
currentPath = path
if (state.repo !== mainRepo && baseCategory) {
if ('repo' in state && state.repo !== mainRepo && baseCategory) {
baseCategory.remove()
mainRepo = state.repo
loadBaseCategory()

Loading…
Cancel
Save