Skip to content

Commit

Permalink
Fix metadata error
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedElmdary committed Nov 14, 2023
1 parent 79d9c86 commit 8fdbafe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playground/src/utils/grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export async function loadProfile(grid: GridClient): Promise<Profile> {
}

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 {};
Expand Down

0 comments on commit 8fdbafe

Please sign in to comment.