Skip to content

Commit

Permalink
Revert "fix(material): fix rendering is blocked, when the url in the …
Browse files Browse the repository at this point in the history
…asset fails to load"

This reverts commit 8b5e2b4.
  • Loading branch information
liujuping authored and JackLian committed Sep 4, 2023
1 parent f48c49c commit 2c2241e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/editor-core/src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,7 @@ export class Editor extends EventEmitter implements IEditor {
return;
}
if (!AssetsCache[exportName] || !npm?.version || AssetsCache[exportName].npm?.version !== npm?.version) {
try {
await (new AssetLoader()).load(url);
} catch (error) {
console.error(`${url} load error: `, error);
}
await (new AssetLoader()).load(url);
}
AssetsCache[exportName] = component;
function setAssetsComponent(component: any, extraNpmInfo: any = {}) {
Expand Down

0 comments on commit 2c2241e

Please sign in to comment.