Fix server switching

This commit is contained in:
James Lyne 2022-01-14 13:54:27 +00:00
parent 234b2d0a6b
commit ac575e4ee9
2 changed files with 4 additions and 4 deletions

4
src/index.d.ts vendored
View File

@ -182,9 +182,9 @@ interface LiveAtlasMarkerSetContents {
interface LiveAtlasMarker {
tooltip: string;
isTooltipHTML: boolean;
tooltipHTML?: string;
popup?: string;
isPopupHTML: boolean;
isPopupHTML?: boolean;
}
interface LiveAtlasPointMarker extends LiveAtlasMarker {

View File

@ -97,8 +97,8 @@ export const actions: ActionTree<State, State> & Actions = {
await state.currentMapProvider!.loadServerConfiguration();
//Skip default map/ui visibility logic if not first load (i.e config reload after hash change)
if(!state.firstLoad) {
//Skip default map/ui visibility logic if we already have a map selected (i.e config reload after hash change)
if(state.currentMap) {
return;
}