Skip to content
Snippets Groups Projects

CE-2076: Convert useHost to common

Merged CE-2076: Convert useHost to common
1 unresolved thread
Merged Alexander Madsen requested to merge CE-2076-convert-useHost into develop
1 unresolved thread
Files
4
+ 0
9
@@ -356,15 +356,6 @@ export function unpackHost(host) {
return { ...host };
}
export function useHost(id, onError) {
const api = useContext(apiContext);
const method = useCallAndUnpack(api.apis.Hosts.findHostById, unpackHost);
const boundMethod = useCallback(method.bind(null, { host_csentry_id: id }), [
id
]);
return useAsync({ fcn: boundMethod, onError: onError });
}
export function unpackCSEntryHost(host) {
return { ...host };
}
Loading