fix document list bundling

This commit is contained in:
Denys Vuika
2016-12-09 10:41:17 +00:00
parent b3b6193006
commit cfb4fc71c0
2 changed files with 11 additions and 11 deletions

View File

@@ -313,17 +313,16 @@ export class ShareDataTableAdapter implements DataTableAdapter, PaginationProvid
}
getImagePath(id: string): any {
let result = null;
try {
// webpack
result = require(`${this.basePath}/img/${id}`);
return require(`./../img/${id}`);
} catch (e) {
// system.js
if (module && module.id) {
result = `${this.basePath}/img/${id}`;
return `${this.basePath}/img/${id}`;
}
}
return result;
return null;
}
private resetPagination() {