Skip to content

Commit

Permalink
Merge pull request #528 from opendatalab/main
Browse files Browse the repository at this point in the history
release test
  • Loading branch information
gary-Shen authored Nov 6, 2024
2 parents 1dec339 + 2df2438 commit 805e85d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/frontend/src/utils/convertImageSample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ export function convertImageSample(
id,
url,
data: convertImageAnnotations(resultParsed, config),
meta: _.pick(resultParsed, ['width', 'height', 'rotate']),
};
}
4 changes: 2 additions & 2 deletions packages/image/src/core/Monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class Monitor {
private _options: MonitorOption;

// TODO: 清空标注时这里也要清空
private _orderIndexedAnnotationIds: string[] = [];
private _orderIndexedAnnotationIds: (string | undefined)[] = [];

/** 键盘按键记录 */
private _keyStatus: Record<EventKeyName, boolean> = {
Expand Down Expand Up @@ -119,7 +119,7 @@ export class Monitor {
return;
}

_orderIndexedAnnotationIds.splice(order, 1);
_orderIndexedAnnotationIds[order] = undefined;
};

private _handleClear = () => {
Expand Down

0 comments on commit 805e85d

Please sign in to comment.