From 059e21d7b3a0e23ef6b516133d4b69876adff327 Mon Sep 17 00:00:00 2001 From: Sarah Gillespie <73313222+gillespi314@users.noreply.github.com> Date: Wed, 14 Feb 2024 09:21:28 -0600 Subject: [PATCH] Fix unreleased UI bug in unlock modal (#16815) --- .../pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx | 1 - .../HostDetailsPage/modals/UnlockModal/UnlockModal.tsx | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx index c2bcd07b3f..a4bfef1362 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx @@ -1003,7 +1003,6 @@ const HostDetailsPage = ({ id={host.id} platform={host.platform} hostName={host.display_name} - pin={123456} onSuccess={() => { host.platform !== "darwin" && setHostMdmDeviceState("unlocking"); }} diff --git a/frontend/pages/hosts/details/HostDetailsPage/modals/UnlockModal/UnlockModal.tsx b/frontend/pages/hosts/details/HostDetailsPage/modals/UnlockModal/UnlockModal.tsx index 827460dde9..1cf9ef9272 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/modals/UnlockModal/UnlockModal.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/modals/UnlockModal/UnlockModal.tsx @@ -16,7 +16,6 @@ interface IUnlockModalProps { id: number; platform: string; hostName: string; - pin?: number; onSuccess: () => void; onClose: () => void; } @@ -25,7 +24,6 @@ const UnlockModal = ({ id, platform, hostName, - pin, onSuccess, onClose, }: IUnlockModalProps) => { @@ -41,6 +39,9 @@ const UnlockModal = ({ () => hostAPI.unlockHost(id), { enabled: platform === "darwin", + refetchOnWindowFocus: false, + refetchOnReconnect: false, + retry: false, } );