From 8fdbafed5c4cc81b524feea2123dc81e30eac447 Mon Sep 17 00:00:00 2001 From: MohamedElmdary Date: Tue, 14 Nov 2023 12:09:21 +0200 Subject: [PATCH] Fix metadata error --- packages/playground/src/utils/grid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playground/src/utils/grid.ts b/packages/playground/src/utils/grid.ts index d900f41383..021bbaa901 100644 --- a/packages/playground/src/utils/grid.ts +++ b/packages/playground/src/utils/grid.ts @@ -79,8 +79,8 @@ export async function loadProfile(grid: GridClient): Promise { } export async function getMetadata(grid: GridClient): Promise<{ [key: string]: any }> { - const metadata = await grid.kvstore.get({ key: "metadata" }); try { + const metadata = await grid.kvstore.get({ key: "metadata" }); return JSON.parse(metadata); } catch { return {};