diff client/src/components/map/layers.js @ 3021:2e2a271c1026

client: fixed layer factory to actually serve different objects
author Markus Kottlaender <markus@intevation.de>
date Thu, 11 Apr 2019 18:57:40 +0200
parents fc8fbea24568
children 81c2e561fe03
line wrap: on
line diff
--- a/client/src/components/map/layers.js	Thu Apr 11 17:48:18 2019 +0200
+++ b/client/src/components/map/layers.js	Thu Apr 11 18:57:40 2019 +0200
@@ -56,7 +56,7 @@
   };
 };
 
-export default (function() {
+export default function() {
   return {
     get(id) {
       return this.config.find(l => l.get("id") === id);
@@ -491,4 +491,4 @@
       })
     ]
   };
-})();
+}