File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
packages/data/src/files/asset-list Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import AssetResource from 'ec.sdk/lib/resources/datamanager/AssetResource';
11
11
export class AssetList extends ResourceList < PublicAssetResource | AssetResource > {
12
12
13
13
constructor ( config : ListConfig < PublicAssetResource | AssetResource > , protected sdk : SdkService , protected fileService : FileService ) {
14
- super ( Object . assign ( config , fileService . assetListConfig ) ) ;
15
- this . load ( ) ;
14
+ super ( Object . assign ( { } , fileService . assetListConfig , config ) ) ;
15
+ this . load ( this . config ) ;
16
16
}
17
17
18
18
/** Overrides the List load method. Instead of slicing the page out of all items, a datamanager request is made using the config.*/
@@ -22,11 +22,11 @@ export class AssetList extends ResourceList<PublicAssetResource | AssetResource>
22
22
}
23
23
this . useConfig ( config ) ;
24
24
const loading = this . sdk . api . assetList ( this . getFilterOptions ( this . config ) )
25
- . then ( ( list ) => {
26
- this . use ( list ) ;
27
- } ) . catch ( ( err ) => {
28
- this . error . next ( err ) ;
29
- } ) ;
25
+ . then ( ( list ) => {
26
+ this . use ( list ) ;
27
+ } ) . catch ( ( err ) => {
28
+ this . error . next ( err ) ;
29
+ } ) ;
30
30
this . loading . next ( loading ) ;
31
31
return loading ;
32
32
}
You can’t perform that action at this time.
0 commit comments