Skip to content

Commit 6e90049

Browse files
author
anmarhindi
committed
removed check
1 parent f7f3fa0 commit 6e90049

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/util/components/projects/projectId/labeling/labeling-helper.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,8 @@ export function collectSelectionData(attributeId: string, currentSelection: Curr
158158
export function getTokenData(attributeId: string, attributes: Attribute[], recordRequests: any): any {
159159
if (!attributes) return null;
160160
if (attributeId == FULL_RECORD_ID) return null;
161-
if (recordRequests.token.length > 0) {
162-
for (const att of recordRequests.token.attributes) {
163-
if (att.attributeId == attributeId) return att;
164-
}
161+
for (const att of recordRequests.token.attributes) {
162+
if (att.attributeId == attributeId) return att;
165163
}
166164
return null;
167165
}

0 commit comments

Comments
 (0)