Skip to content

Commit

Permalink
Merge branch 'master' into selvi
Browse files Browse the repository at this point in the history
  • Loading branch information
LianaHus authored Dec 5, 2023
2 parents f2051b6 + 79228da commit 5bb6abd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ contract HelloWorld {

const handleSwichToRecentWorkspace = async (e, workspaceName) => {
e.preventDefault()
_paq.push(['trackEvent', 'hometab', 'filesSection', 'loadRecentWorkspace'])
await plugin.call('filePanel', 'switchToWorkspace', { name: workspaceName, isLocalhost: false })
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ export class CompileTabLogic {
this.event.emit('removeAnnotations')
this.event.emit('startingCompilation')
if(await this.api.fileExists('remappings.txt')) {
this.api.readFile('remappings.txt').then( remappings => {
this.compiler.set('remappings', remappings.split('\n'))
this.api.readFile('remappings.txt').then(remappings => {
this.compiler.set('remappings', remappings.split('\n').filter(Boolean))
})
}
} else this.compiler.set('remappings', [])
if (this.configFilePath) {
this.api.readFile(this.configFilePath).then( contentConfig => {
this.compiler.set('configFileContent', contentConfig)
Expand Down

0 comments on commit 5bb6abd

Please sign in to comment.