Skip to content

Commit

Permalink
Merge branch 'master' into liweitian/UIBug1
Browse files Browse the repository at this point in the history
  • Loading branch information
liweitian committed Feb 6, 2020
2 parents 6041474 + cf2bd0a commit a214553
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export const LoopIconSize = {
};

export const IconBrickSize = {
width: 16,
height: 16,
width: 24,
height: 24,
};

export const LoopEdgeMarginLeft = 20;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function getSuggestionEntities(luisJson: any, suggestionEntityTypes: stri
suggestionEntityTypes.forEach(entityType => {
if (luisJson[entityType] !== undefined && luisJson[entityType].length > 0) {
luisJson[entityType].forEach(entity => {
if (entity) {
if (entity && entity.name) {
suggestionEntityList.push(entity.name);
}
});
Expand Down Expand Up @@ -177,7 +177,9 @@ export function getSuggestionRoles(luisJson: any, suggestionEntityTypes: string[
luisJson[entityType].forEach(entity => {
if (entity.roles !== undefined && entity.roles.length > 0) {
entity.roles.forEach(role => {
suggestionRolesList.push(role);
if (role) {
suggestionRolesList.push(role);
}
});
}
});
Expand Down

0 comments on commit a214553

Please sign in to comment.