pull/5370/head
yann300 3 years ago
parent a1312ad721
commit 0caa0b37ed
  1. 7
      libs/remix-ui/workspace/src/lib/actions/workspace.ts

@ -117,11 +117,8 @@ export const loadWorkspacePreset = async (template: 'gist-template' | 'code-temp
obj['/' + 'gist-' + gistId + '/' + path] = data.files[element] obj['/' + 'gist-' + gistId + '/' + path] = data.files[element]
}) })
plugin.fileManager.setBatchFiles(obj, 'workspace', true, (errorLoadingFile) => { plugin.fileManager.setBatchFiles(obj, 'workspace', true, (errorLoadingFile) => {
if (!errorLoadingFile) { if (errorLoadingFile) {
const provider = plugin.fileManager.getProvider('workspace') dispatch(displayNotification('', errorLoadingFile.message || errorLoadingFile, 'OK', null, () => {}, null))
} else {
dispatch(displayNotification('', errorLoadingFile.message || errorLoadingFile, 'OK', null, () => {}, null))
} }
}) })
} catch (e) { } catch (e) {

Loading…
Cancel
Save