diff --git a/src/sheet-toolbar.cjsx b/src/sheet-toolbar.cjsx
index 72750db1a..4bbd35b4e 100644
--- a/src/sheet-toolbar.cjsx
+++ b/src/sheet-toolbar.cjsx
@@ -171,6 +171,7 @@ class Toolbar extends React.Component
toolbars = @state.columns.map (components, idx) =>
{@_flexboxForComponents(components)}
@@ -220,6 +221,7 @@ class Toolbar extends React.Component
state =
mode: WorkspaceStore.layoutMode()
columns: []
+ columnNames: []
# Add items registered to Regions in the current sheet
if @props.data?.columns[state.mode]?
@@ -227,18 +229,19 @@ class Toolbar extends React.Component
continue if WorkspaceStore.isLocationHidden(loc)
entries = ComponentRegistry.findComponentsMatching({location: loc.Toolbar, mode: state.mode})
state.columns.push(entries)
+ state.columnNames.push(loc.Toolbar.id.split(":")[0]) if entries
# Add left items registered to the Sheet instead of to a Region
for loc in [WorkspaceStore.Sheet.Global, @props.data]
entries = ComponentRegistry.findComponentsMatching({location: loc.Toolbar.Left, mode: state.mode})
state.columns[0]?.push(entries...)
- state.columns[0]?.push(ToolbarBack) if @props.depth > 0
+ if @props.depth > 0
+ state.columns[0]?.push(ToolbarBack)
# Add right items registered to the Sheet instead of to a Region
for loc in [WorkspaceStore.Sheet.Global, @props.data]
entries = ComponentRegistry.findComponentsMatching({location: loc.Toolbar.Right, mode: state.mode})
state.columns[state.columns.length - 1]?.push(entries...)
-
if state.mode is "popout"
state.columns[0]?.push(WindowTitle)
diff --git a/static/react-remote-child.html b/static/react-remote-child.html
index b91f6af52..cac38747b 100644
--- a/static/react-remote-child.html
+++ b/static/react-remote-child.html
@@ -2,12 +2,12 @@