From 25fc37b7155a45ee6553d2bccceb1baf9b5c8d45 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Tue, 25 Jun 2024 12:51:44 +0300 Subject: [PATCH] UI: don't send the cleanup parameter on interactive detector calls (#8075) The server doesn't support it, and it wouldn't make sense anyway. Potentially it could be handled on the client side, but right now it isn't. This should've been a part of #8074, but I didn't realize there was a similar issue with `cleanup` as with `convMaskToPoly`. --- .../standard-workspace/controls-side-bar/tools-control.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/tools-control.tsx b/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/tools-control.tsx index 5c50147477fc..cd30ab33aae1 100644 --- a/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/tools-control.tsx +++ b/cvat-ui/src/components/annotation-page/standard-workspace/controls-side-bar/tools-control.tsx @@ -1232,7 +1232,8 @@ export class ToolsControlComponent extends React.PureComponent { try { this.setState({ mode: 'detection', fetching: true }); - const { convMaskToPoly, ...restOfBody } = body; + // The function call endpoint doesn't support the cleanup and convMaskToPoly parameters. + const { cleanup, convMaskToPoly, ...restOfBody } = body; const result = await core.lambda.call(jobInstance.taskId, model, { ...restOfBody, frame, job: jobInstance.id,