From 40bbd4fabed323c5f0d1b00748cc2be4d4ed77a7 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 17 Oct 2024 10:37:25 -0400 Subject: [PATCH] fix: LambdaEncryptionKey being created twice under certain conditions --- platform/src/util/lazy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/src/util/lazy.ts b/platform/src/util/lazy.ts index c26e25747..d52783ac2 100644 --- a/platform/src/util/lazy.ts +++ b/platform/src/util/lazy.ts @@ -4,8 +4,8 @@ export function lazy(callback: () => T) { return () => { if (!loaded) { - result = callback(); loaded = true; + result = callback(); } return result; };