Skip to content

Commit

Permalink
Fix categories
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanconstantinescu committed Apr 20, 2019
1 parent 34e9687 commit fe62d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/core/models/category.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Category {
this.description = aCategoryResponse.description;
this.parentId = aCategoryResponse.parentId || null;
this.parent = aCategoryResponse.parent || undefined;
this.forEntity = aCategoryResponse.forEntity ? CategoryEntity[aCategoryResponse.forEntity] : undefined;
this.forEntity = aCategoryResponse.forEntity ? aCategoryResponse.forEntity as CategoryEntity : undefined;
}

fromJson(aCategory: ICategory) {
Expand Down

0 comments on commit fe62d4e

Please sign in to comment.