From 4318feaa88752d93f2363750f139e4afe97360a7 Mon Sep 17 00:00:00 2001 From: Siggi Simonarson Date: Wed, 12 Jun 2024 09:11:12 -0700 Subject: [PATCH] Don't revive loading state from storage (#6797) --- enterprise/app/code/code.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/enterprise/app/code/code.tsx b/enterprise/app/code/code.tsx index 2f3c9876b2d..d8b9e416e43 100644 --- a/enterprise/app/code/code.tsx +++ b/enterprise/app/code/code.tsx @@ -1628,6 +1628,9 @@ function getOrCreateModel(url: string, value: string) { // This revives any non-serializable objects in state from their seralized form. function stateReviver(key: string, value: any) { + if (key == "loading") { + return false; + } if (typeof value === "object" && value !== null) { if (value.dataType === "Map") { return new Map(value.value);