fix: always show map, even if coordinates are unset

This commit is contained in:
ccmdi 2025-10-20 12:36:11 -04:00
parent df46d8637b
commit a6335f4bde
No known key found for this signature in database

View file

@ -146,12 +146,11 @@ export class MapBasesView extends BasesView {
}
private async renderMap(): Promise<void> {
// Need either coordinates property OR global lat/lng keys
if (!this.data || (!this.coordinatesProp && (!this.plugin.settings.latKey || !this.plugin.settings.lngKey))) {
if (!this.data) {
this.containerEl.removeClass('is-loading');
return;
}
const loadingOverlay = this.containerEl.createDiv({ cls: 'map-loading-overlay' });
const spinner = loadingOverlay.createDiv();