Index: third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js |
index 58a3e642cdab996bb9782eb1741aa93a34e3d2c1..ccbef798afc87718b90c55e21aa1e8b21e909824 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js |
+++ b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js |
@@ -639,9 +639,10 @@ Resources.ResourcesPanel = class extends UI.PanelWithSidebar { |
this.visibleView = view; |
this._storageViewToolbar.removeToolbarItems(); |
- var toolbarItems = view instanceof UI.SimpleView ? view.syncToolbarItems() : null; |
- for (var i = 0; toolbarItems && i < toolbarItems.length; ++i) |
+ var toolbarItems = (view instanceof UI.SimpleView && view.syncToolbarItems()) || []; |
+ for (var i = 0; i < toolbarItems.length; ++i) |
this._storageViewToolbar.appendToolbarItem(toolbarItems[i]); |
+ this._storageViewToolbar.setVisible(toolbarItems.length > 0); |
} |
closeVisibleView() { |