From d945a791023b434867cc2a18b89e38a12c54e132 Mon Sep 17 00:00:00 2001 From: Zoltan Runyo <zoltan.runyo@ess.eu> Date: Mon, 20 Feb 2023 11:35:27 +0100 Subject: [PATCH] ICSHWI-11790: Remove 'List commands' API call --- src/api/SwaggerApi.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/api/SwaggerApi.js b/src/api/SwaggerApi.js index d903817a..026db75f 100644 --- a/src/api/SwaggerApi.js +++ b/src/api/SwaggerApi.js @@ -362,31 +362,6 @@ export function unpackCommandList(commandList) { return unpackedCommandList; } -export function unpackAllCommandList(input) { - const { commands: operationsList, ...rest } = input; - const output = { ...rest, operationsList }; - return output; -} - -export function useCommandList() { - const api = useContext(apiContext); - const method = useCallAndUnpack( - (iocId, deploymentId, page, limit) => - api.apis.Deployments.listCommands({ - ioc_id: iocId, - deployment_id: deploymentId, - page: page, - limit: limit - }), - unpackAllCommandList - ); - return useAsync({ - fcn: method, - call: false, - init: emptyOperationsListResponse - }); -} - export function unpackOngoingCommand(command) { if (command) { return { ...command }; -- GitLab