From 09d5046045ef4bc81de8b193596ac89899cf9c93 Mon Sep 17 00:00:00 2001 From: Daisuke Akatsuka Date: Thu, 7 May 2020 02:45:15 +0000 Subject: [PATCH] Bug 1620098: Avoid calling onUpdateDeviceModal twice when closing the device modal. r=mtigley Depends on D67984 Differential Revision: https://phabricator.services.mozilla.com/D68141 --- devtools/client/responsive/components/DeviceModal.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/devtools/client/responsive/components/DeviceModal.js b/devtools/client/responsive/components/DeviceModal.js index 01f9de24f3de..7c1f0f924767 100644 --- a/devtools/client/responsive/components/DeviceModal.js +++ b/devtools/client/responsive/components/DeviceModal.js @@ -108,12 +108,7 @@ class DeviceModal extends PureComponent { } onDeviceModalSubmit() { - const { - devices, - onDeviceListUpdate, - onUpdateDeviceDisplayed, - onUpdateDeviceModal, - } = this.props; + const { devices, onDeviceListUpdate, onUpdateDeviceDisplayed } = this.props; const preferredDevices = { added: new Set(), @@ -137,7 +132,6 @@ class DeviceModal extends PureComponent { } onDeviceListUpdate(preferredDevices); - onUpdateDeviceModal(false); } onEditCustomDevice(newDevice) {