From 9556994e140f5fcc3ea44f2a297de6e218e55ade Mon Sep 17 00:00:00 2001 From: TrainDoctor Date: Fri, 12 Aug 2022 11:45:29 -0700 Subject: fix empty settings and store screens after reboot --- frontend/src/tabs-hook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend') diff --git a/frontend/src/tabs-hook.ts b/frontend/src/tabs-hook.ts index b83a1e97..ffa87464 100644 --- a/frontend/src/tabs-hook.ts +++ b/frontend/src/tabs-hook.ts @@ -103,7 +103,7 @@ class TabsHook extends Logger { } deinit() { - unpatch(this.cNode.stateNode, 'render'); + if (this.cNode) unpatch(this.cNode.stateNode, 'render'); if (this.qAPTree) this.qAPTree.type = this.quickAccess; if (this.rendererTree) this.rendererTree.type = this.tabRenderer; if (this.cNode) this.cNode.stateNode.forceUpdate(); -- cgit v1.2.3