mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
Fleet Desktop: Refetch uses device API not host API (#4770)
This commit is contained in:
parent
cf34466e7f
commit
a3789c817e
@ -9,7 +9,6 @@ import classnames from "classnames";
|
||||
import { isEmpty, pick, reduce } from "lodash";
|
||||
|
||||
import deviceUserAPI from "services/entities/device_user";
|
||||
import hostAPI from "services/entities/hosts";
|
||||
import { IHost, IDeviceMappingResponse } from "interfaces/host";
|
||||
import { ISoftware } from "interfaces/software";
|
||||
// @ts-ignore
|
||||
@ -209,7 +208,7 @@ const DeviceUserPage = ({
|
||||
// method.
|
||||
setShowRefetchSpinner(true);
|
||||
try {
|
||||
await hostAPI.refetch(host).then(() => {
|
||||
await deviceUserAPI.refetch(deviceAuthToken).then(() => {
|
||||
setRefetchStartTime(Date.now());
|
||||
setTimeout(() => {
|
||||
refetchHostDetails();
|
||||
|
Loading…
Reference in New Issue
Block a user