Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a25b8692eb |
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "worldwideview",
|
||||
"version": "1.19.4",
|
||||
"version": "1.19.5",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"setup": "node scripts/setup.mjs",
|
||||
|
||||
@@ -67,7 +67,7 @@ class CacheLayer {
|
||||
}
|
||||
|
||||
async getFromPersistent(pluginId: string): Promise<GeoEntity[] | null> {
|
||||
if (!this.db) return null;
|
||||
if (!this.db || !pluginId) return null;
|
||||
return new Promise((resolve) => {
|
||||
const tx = this.db!.transaction(this.storeName, "readonly");
|
||||
const request = tx.objectStore(this.storeName).get(pluginId);
|
||||
|
||||
@@ -75,7 +75,7 @@ export default function GlobeView() {
|
||||
pluginManager.getAllPlugins().forEach((managed) => {
|
||||
const pluginId = managed.plugin.id;
|
||||
if (!layers[pluginId]?.enabled) return;
|
||||
if (managed.plugin.getLayerConfig().disableDefaultRendering) return;
|
||||
if (managed.plugin.getLayerConfig?.().disableDefaultRendering) return;
|
||||
const entities = entitiesByPlugin[pluginId];
|
||||
if (!Array.isArray(entities)) return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user