Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
fix: app service
Browse files Browse the repository at this point in the history
Change-Id: I3b61593adbf526e46be3a44aaa38589b025751ff
  • Loading branch information
myml committed Aug 20, 2018
1 parent dc6b15e commit ffaa255
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ else
rm -rf src/web/node_modules
git clone -b deepin-appstore https://cr.deepin.io/vendor-deps src/web/node_modules

rm -rf src/web/src/app/dstore
git clone https://cr.deepin.io/dstore-web-components src/web/src/app/dstore

rm -rf src/web/src/app/dstore-client.module
git clone -b client https://cr.deepin.io/dstore-web-components src/web/src/app/dstore-client.module
endif
2 changes: 1 addition & 1 deletion src/web/src/app/dstore/services/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class AppService {
const categoryList = await this.categoryServer.getList().toPromise();
Object.values(appMap).forEach(app => {
app.localCategory = categoryList[app.category].LocalName;
if (get(app, ['locale', Locale.getUnixLocale(), 'description.name'])) {
if (get(app, ['locale', Locale.getUnixLocale(), 'description', 'name'])) {
app.localInfo = app.locale[Locale.getUnixLocale()];
} else if (get(app, 'locale.en_US.description.name')) {
app.localInfo = app.locale['en_US'];
Expand Down

0 comments on commit ffaa255

Please sign in to comment.