diff --git a/js/ui/status/network.js b/js/ui/status/network.js index ce1e7e44b..8c7c4dc75 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1934,10 +1934,10 @@ const NMApplet = new Lang.Class({ section.addMenuItem(wrapper.statusItem); section.addMenuItem(wrapper.section); - this._syncSectionTitle(wrapper.category); - let devices = this._devices[wrapper.category].devices; devices.push(wrapper); + + this._syncSectionTitle(wrapper.category); }, _deviceRemoved: function(client, device) {