From f559c6db79ddff127d6713c757dd208369662ddb Mon Sep 17 00:00:00 2001 From: Lucas Manuel Rodriguez Date: Fri, 27 Mar 2026 10:13:59 -0300 Subject: [PATCH] Fix disk encryption key modal to not show stale key when switching between hosts (#42444) Resolves: #42443 - [X] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. ## Testing - [X] QA'd all new/changed functionality manually --- changes/42443-fix-show-disk-encryption-key-modal | 1 + .../modals/DiskEncryptionKeyModal/DiskEncryptionKeyModal.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changes/42443-fix-show-disk-encryption-key-modal diff --git a/changes/42443-fix-show-disk-encryption-key-modal b/changes/42443-fix-show-disk-encryption-key-modal new file mode 100644 index 0000000000..3e77f684a8 --- /dev/null +++ b/changes/42443-fix-show-disk-encryption-key-modal @@ -0,0 +1 @@ +* Fixed disk encryption key modal to not show stale key when switching between hosts. diff --git a/frontend/pages/hosts/details/HostDetailsPage/modals/DiskEncryptionKeyModal/DiskEncryptionKeyModal.tsx b/frontend/pages/hosts/details/HostDetailsPage/modals/DiskEncryptionKeyModal/DiskEncryptionKeyModal.tsx index 7d9f6f2999..909745438d 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/modals/DiskEncryptionKeyModal/DiskEncryptionKeyModal.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/modals/DiskEncryptionKeyModal/DiskEncryptionKeyModal.tsx @@ -30,7 +30,7 @@ const DiskEncryptionKeyModal = ({ IHostEncrpytionKeyResponse, unknown, string - >("hostEncrpytionKey", () => hostAPI.getEncryptionKey(hostId), { + >(["hostEncrpytionKey", hostId], () => hostAPI.getEncryptionKey(hostId), { refetchOnMount: false, refetchOnReconnect: false, refetchOnWindowFocus: false,