Merge pull request #60 from Telecominfraproject/hotfix/WIFI-758

WIFI-758: Fixed data path for updateEquipmentFirmware
This commit is contained in:
Sean Macfarlane
2020-09-15 13:43:20 -04:00
committed by GitHub

View File

@@ -229,7 +229,7 @@ const AccessPointDetails = ({ locations }) => {
const handleUpdateEquipmentFirmware = (equipmentId, firmwareVersionId) => const handleUpdateEquipmentFirmware = (equipmentId, firmwareVersionId) =>
updateEquipmentFirmware({ variables: { equipmentId, firmwareVersionId } }) updateEquipmentFirmware({ variables: { equipmentId, firmwareVersionId } })
.then(firmwareResp => { .then(firmwareResp => {
if (firmwareResp && firmwareResp.updateEquipmentFirmware.success === false) { if (firmwareResp && firmwareResp.data.updateEquipmentFirmware.success === false) {
notification.error({ notification.error({
message: 'Error', message: 'Error',
description: 'Equipment Firmware Upgrade could not be updated.', description: 'Equipment Firmware Upgrade could not be updated.',