Bug 1620098: Avoid calling onUpdateDeviceModal twice when closing the device modal. r=mtigley

Depends on D67984

Differential Revision: https://phabricator.services.mozilla.com/D68141
This commit is contained in:
Daisuke Akatsuka 2020-05-07 02:45:15 +00:00
Родитель 555708ddc9
Коммит 09d5046045
1 изменённых файлов: 1 добавлений и 7 удалений

Просмотреть файл

@ -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) {