зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
555708ddc9
Коммит
09d5046045
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче