From f7a5b21f03cf1ac2042819bcfd4fc46b854e853e Mon Sep 17 00:00:00 2001 From: GiordanoT Date: Mon, 27 Nov 2023 16:31:26 +0100 Subject: [PATCH] be fixes --- src/api/persistance/save.ts | 2 +- src/joiner/classes.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/persistance/save.ts b/src/api/persistance/save.ts index 240df4c41..bf4394eb9 100644 --- a/src/api/persistance/save.ts +++ b/src/api/persistance/save.ts @@ -63,7 +63,7 @@ export class Save { const defaultViews = U.getDefaultViewsID() as Pointer[]; await Fetch.delete(url); for(let element of elements) { - if(defaultViews.includes(element.id)) continue; + if(!element || defaultViews.includes(element.id)) continue; console.log(`Saving To Server (${element.className})`, element); await Fetch.post(url, U.json(element)); } diff --git a/src/joiner/classes.ts b/src/joiner/classes.ts index 44c1c13f0..d85b576ef 100644 --- a/src/joiner/classes.ts +++ b/src/joiner/classes.ts @@ -1663,7 +1663,7 @@ let bb2 = fffff(a); @RuntimeAccessible export class DUser extends DPointerTargetable { public static cname: string = 'DUser'; - public static offlineMode: boolean = true; + public static offlineMode: boolean = false; // static current: Pointer = 'Pointer_AnonymousUser'; static current: Pointer = ''; static subclasses: (typeof RuntimeAccessibleClass | string)[] = [];