diff --git a/libs/remix-ui/workspace/src/lib/actions/workspace.ts b/libs/remix-ui/workspace/src/lib/actions/workspace.ts index 64079f315b..b5447f10dd 100644 --- a/libs/remix-ui/workspace/src/lib/actions/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/actions/workspace.ts @@ -99,7 +99,7 @@ export const loadWorkspacePreset = async (template: 'gist-template' | 'code-temp path = data.cleanUrl content = data.content - if (content && typeof content === 'object') { + if (content && typeof content === 'object' && !Array.isArray(content)) { const standardInput = content as JSONStandardInput if (standardInput.language && standardInput.language === "Solidity" && standardInput.sources) { for (const [fname, source] of Object.entries(standardInput.sources)) {