Skip to content

Commit

Permalink
Merge pull request #1414 from threefoldtech/development_hotfix_metada…
Browse files Browse the repository at this point in the history
…ta_error

Hotfix: Fix metadata error
  • Loading branch information
MohamedElmdary authored Nov 14, 2023
2 parents 79d9c86 + 8fdbafe commit 7f04aa6
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 7f04aa6

Please sign in to comment.