Explorar el Código

Core.things.data is gone

Johannes Zellner hace 11 años
padre
commit
ff8fbfcc49
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      frontend/js/main.js

+ 2 - 2
frontend/js/main.js

@@ -122,10 +122,10 @@ function refresh(search) {
 
     window.location.href = '/#search?' + (search ? encodeURIComponent(search) : '');
 
-    Core.things.get(search || '', function (error) {
+    Core.things.get(search || '', function (error, data) {
         if (error) return console.error(error);
 
-        vue.things = Core.things.data;
+        vue.things = data;
         vue.busyThings = false;
     });
 }