From 3999dbbe666a6704b4db8a3e7ee0ce7b892e21d1 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Sun, 26 Dec 2021 23:12:49 +0000 Subject: [PATCH] fix: hydrating server config should always be null if not present --- src/mobx/stores/ServerConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mobx/stores/ServerConfig.ts b/src/mobx/stores/ServerConfig.ts index 6b44bec1..53fccce2 100644 --- a/src/mobx/stores/ServerConfig.ts +++ b/src/mobx/stores/ServerConfig.ts @@ -32,7 +32,7 @@ export default class ServerConfig } @action hydrate(data: RevoltConfiguration) { - this.config = data; + this.config = data ?? null; } /**