mirror of
https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
synced 2025-10-30 17:57:46 +00:00
[WIFI-11760] Potential fix for duplicate error fetching device notifications on device page
Signed-off-by: Charles <charles.bourque96@gmail.com>
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "ucentral-client",
|
"name": "ucentral-client",
|
||||||
"version": "2.8.0(26)",
|
"version": "2.8.0(27)",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "ucentral-client",
|
"name": "ucentral-client",
|
||||||
"version": "2.8.0(26)",
|
"version": "2.8.0(27)",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/icons": "^2.0.11",
|
"@chakra-ui/icons": "^2.0.11",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ucentral-client",
|
"name": "ucentral-client",
|
||||||
"version": "2.8.0(26)",
|
"version": "2.8.0(27)",
|
||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "index.tsx",
|
"main": "index.tsx",
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ export const useGetDevice = ({ serialNumber, onClose }: { serialNumber?: string;
|
|||||||
onError: (e: AxiosError) => {
|
onError: (e: AxiosError) => {
|
||||||
if (!toast.isActive('gateway-device-fetching-error'))
|
if (!toast.isActive('gateway-device-fetching-error'))
|
||||||
toast({
|
toast({
|
||||||
id: 'gateway-device-error',
|
id: 'gateway-device-fetching-error',
|
||||||
title: t('common.error'),
|
title: t('common.error'),
|
||||||
description:
|
description:
|
||||||
e?.response?.status === 404
|
e?.response?.status === 404
|
||||||
|
|||||||
Reference in New Issue
Block a user