mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix document list bundling
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user