mirror of
https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
synced 2025-10-30 01:42:19 +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:
@@ -223,7 +223,7 @@ export const useGetDevice = ({ serialNumber, onClose }: { serialNumber?: string;
|
||||
onError: (e: AxiosError) => {
|
||||
if (!toast.isActive('gateway-device-fetching-error'))
|
||||
toast({
|
||||
id: 'gateway-device-error',
|
||||
id: 'gateway-device-fetching-error',
|
||||
title: t('common.error'),
|
||||
description:
|
||||
e?.response?.status === 404
|
||||
|
||||
Reference in New Issue
Block a user