pull/4998/head
yann300 5 months ago
parent 2481fa33a8
commit d3a91a4b00
  1. 11
      libs/remix-ui/workspace/src/lib/actions/workspace.ts

@ -307,10 +307,13 @@ export const loadWorkspacePreset = async (template: WorkspaceTemplate = 'remixDe
}
}
if (params.ghfolder) {
const files = await plugin.call('contentImport', 'resolveGithubFolder', params.ghfolder)
console.log(files)
for (const [path, content] of Object.entries(files)) {
await workspaceProvider.set(path, content)
try {
const files = await plugin.call('contentImport', 'resolveGithubFolder', params.ghfolder)
for (const [path, content] of Object.entries(files)) {
await workspaceProvider.set(path, content)
}
} catch (e) {
console.log(e)
}
}

Loading…
Cancel
Save