mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov-ui.git
synced 2025-10-29 17:52:25 +00:00
[WIFI-10810] Using isInitialLoading on disabled useQueries
Signed-off-by: Charles <charles.bourque96@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@ const DeviceActionDropdown = ({
|
||||
onOpenUpgradeModal,
|
||||
}: Props) => {
|
||||
const { t } = useTranslation();
|
||||
const { refetch: getRtty, isLoading: isRtty } = useGetDeviceRtty({
|
||||
const { refetch: getRtty, isInitialLoading: isRtty } = useGetDeviceRtty({
|
||||
serialNumber: device.serialNumber,
|
||||
extraId: 'inventory-modal',
|
||||
});
|
||||
|
||||
@@ -15,18 +15,16 @@ interface Props {
|
||||
onOpenUpgradeModal: (serialNumber: string) => void;
|
||||
}
|
||||
|
||||
const DeviceActionDropdown = (
|
||||
{
|
||||
device,
|
||||
refresh,
|
||||
isDisabled,
|
||||
onOpenScan,
|
||||
onOpenFactoryReset,
|
||||
onOpenUpgradeModal
|
||||
}: Props
|
||||
) => {
|
||||
const DeviceActionDropdown = ({
|
||||
device,
|
||||
refresh,
|
||||
isDisabled,
|
||||
onOpenScan,
|
||||
onOpenFactoryReset,
|
||||
onOpenUpgradeModal,
|
||||
}: Props) => {
|
||||
const { t } = useTranslation();
|
||||
const { refetch: getRtty, isLoading: isRtty } = useGetDeviceRtty({
|
||||
const { refetch: getRtty, isInitialLoading: isRtty } = useGetDeviceRtty({
|
||||
serialNumber: device.serialNumber,
|
||||
extraId: 'other',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user