diff --git a/src/api/SwaggerApi.js b/src/api/SwaggerApi.js index fd350dddae9049d4b564b6ec9e1c2b3308a763c7..59444ee7b8d0761413d3c91d724a71ee448b54de 100644 --- a/src/api/SwaggerApi.js +++ b/src/api/SwaggerApi.js @@ -229,30 +229,6 @@ export function unpackOngoingOperations(input) { return output.totalCount > 0 ? output.operationsList[0] : null; } -export function useOngoingCommand(iocId) { - const api = useContext(apiContext); - const method = useCallAndUnpack( - api.apis.Deployments.listOperations, - unpackOngoingOperations - ); - const boundMethod = useCallback( - method.bind(null, { ioc_id: iocId, type: "COMMAND", status: "ONGOING" }), - [iocId] - ); - return useAsync({ - fcn: boundMethod, - call: false, - init: emptyOperationsListResponse - }); -} - -const emptyOperationsListResponse = { - totalCount: 0, - pageNumber: 0, - limit: 0, - operationsList: [] -}; - export function unpackOperation(operation) { const d = { ...operation }; return d; diff --git a/src/components/IOC/IOCService/IOCService.js b/src/components/IOC/IOCService/IOCService.js index 023174091dd3d57fef7a302137d1f791b6179cc5..6f42bda0666a16a8cbbf60a39948003d81b08645 100644 --- a/src/components/IOC/IOCService/IOCService.js +++ b/src/components/IOC/IOCService/IOCService.js @@ -49,7 +49,6 @@ export function IOCService({ setButtonDisabled, jobLazyParams }) { - console.log({ currentCommand }); const [error, setError] = useState(); const navigate = useNavigate();