Skip to content

Commit 35be771

Browse files
committed
renamed the event
1 parent 5ad4f0e commit 35be771

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/remix-ide/src/app/files/workspaceFileProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class WorkspaceFileProvider extends FileProvider {
8282

8383
createWorkspace (name) {
8484
if (!name) name = 'default_workspace'
85-
this.event.trigger('create_workspace', [name])
85+
this.event.trigger('createWorkspace', [name])
8686
}
8787
}
8888

libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export const Workspace = (props: WorkspaceProps) => {
105105
remixdExplorer.loading()
106106
})
107107

108-
props.workspace.event.register('create_workspace', (name) => {
108+
props.workspace.event.register('createWorkspace', (name) => {
109109
createNewWorkspace(name)
110110
})
111111

0 commit comments

Comments
 (0)