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,