Skip to content

Commit

Permalink
fix issue of "Auto-labeling while switching assets in asset preview c…
Browse files Browse the repository at this point in the history
…auses an error" (#721)

Co-authored-by: Alex Chen <68627897+yongbing-chen@users.noreply.github.com>
Co-authored-by: alex-krasn <64093224+alex-krasn@users.noreply.github.com>
Co-authored-by: stew-ro <60453211+stew-ro@users.noreply.github.com>
  • Loading branch information
4 people authored Nov 9, 2020
1 parent c81b232 commit 59fe4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/assetService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class AssetService {
return result;
};
const getLabelValues = (field: any) => {
return field.elements.map((path: string):IFormRegion => {
return field.elements?.map((path: string):IFormRegion => {
const pathArr = path.split('/').slice(1);
const word = pathArr.reduce((obj: any, key: string) => obj[key], { ...predictResults.analyzeResult });
return {
Expand Down

0 comments on commit 59fe4e2

Please sign in to comment.