Skip to content

Commit dc87c13

Browse files
author
anmarhindi
committed
check added for getTokenData
1 parent eee6224 commit dc87c13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ 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) return null;
161162
for (const att of recordRequests.token.attributes) {
162163
if (att.attributeId == attributeId) return att;
163164
}

0 commit comments

Comments
 (0)