diff --git a/.changeset/strong-years-battle.md b/.changeset/strong-years-battle.md new file mode 100644 index 0000000000..2e7e965873 --- /dev/null +++ b/.changeset/strong-years-battle.md @@ -0,0 +1,6 @@ +--- +"@gradio/client": minor +"gradio": minor +--- + +feat:Fix spaces load error diff --git a/client/js/src/helpers/init_helpers.ts b/client/js/src/helpers/init_helpers.ts index 95610e9691..f4945a5aca 100644 --- a/client/js/src/helpers/init_helpers.ts +++ b/client/js/src/helpers/init_helpers.ts @@ -101,6 +101,11 @@ export async function resolve_config( let config = await response.json(); config.path = config.path ?? ""; config.root = endpoint; + config.dependencies?.forEach((dep: any, i: number) => { + if (dep.id === undefined) { + dep.id = i; + } + }); return config; } else if (response?.status === 401) { throw new Error(UNAUTHORIZED_MSG);