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
This commit is contained in:
Lucas Manuel Rodriguez 2026-03-27 10:13:59 -03:00 committed by GitHub
parent b42fc182fe
commit f559c6db79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
* Fixed disk encryption key modal to not show stale key when switching between hosts.

View file

@ -30,7 +30,7 @@ const DiskEncryptionKeyModal = ({
IHostEncrpytionKeyResponse,
unknown,
string
>("hostEncrpytionKey", () => hostAPI.getEncryptionKey(hostId), {
>(["hostEncrpytionKey", hostId], () => hostAPI.getEncryptionKey(hostId), {
refetchOnMount: false,
refetchOnReconnect: false,
refetchOnWindowFocus: false,