mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-11-01 19:27:51 +00:00
added fetch policy
This commit is contained in:
@@ -143,6 +143,7 @@ const AccessPointDetails = ({ locations }) => {
|
|||||||
variables: {
|
variables: {
|
||||||
id,
|
id,
|
||||||
},
|
},
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
});
|
});
|
||||||
|
|
||||||
const { data: dataFirmware, error: errorFirmware, loading: loadingFirmware } = useQuery(
|
const { data: dataFirmware, error: errorFirmware, loading: loadingFirmware } = useQuery(
|
||||||
@@ -245,11 +246,6 @@ const AccessPointDetails = ({ locations }) => {
|
|||||||
const handleDeleteEquipment = () => {
|
const handleDeleteEquipment = () => {
|
||||||
deleteEquipment({
|
deleteEquipment({
|
||||||
variables: { id },
|
variables: { id },
|
||||||
update: cache => {
|
|
||||||
Object.keys(cache.data.data).forEach(
|
|
||||||
key => key.match(`Equipment:${id}`) && cache.data.delete(key)
|
|
||||||
);
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
history.push('/network/access-points');
|
history.push('/network/access-points');
|
||||||
|
|||||||
Reference in New Issue
Block a user