Skip to content
Snippets Groups Projects

CE-2077: Convert useCSentryHost

Merged Alexander Madsen requested to merge CE-2077-convert-useCSentryHost into develop
3 files
+ 0
45
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 0
9
@@ -387,15 +387,6 @@ export function useHost(id, onError) {
return useAsync({ fcn: boundMethod, onError: onError });
}
export function useCSentryHost(onError) {
const api = useContext(apiContext);
const method = useCallAndUnpack(
(id) => api.apis.Hosts.findCSentryHostById({ host_csentry_id: id }),
unpackHost
);
return useAsync({ fcn: method, call: false, onError: onError });
}
export function unpackCSEntryHost(host) {
return { ...host };
}
Loading