Skip to content

Commit

Permalink
UI: don't send the cleanup parameter on interactive detector calls (#…
Browse files Browse the repository at this point in the history
…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`.
  • Loading branch information
SpecLad authored Jun 25, 2024
1 parent 78fa7cf commit 25fc37b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,8 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
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,
Expand Down

0 comments on commit 25fc37b

Please sign in to comment.