We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c0de88 commit 833db50Copy full SHA for 833db50
1 file changed
projects/lib/src/admin/components/asset-list/asset-list.component.ts
@@ -66,11 +66,11 @@ export class AssetListComponent implements OnInit {
66
let options: ListArgs<Asset> = {
67
filters: { Type: assetType },
68
};
69
+ // TODO: ListAssets will not accept search as a parameter, refactor for client side searching
70
if (searchTerm) {
71
options = { ...options, search: searchTerm, searchOn: ['Title'] };
72
}
73
return HeadStartSDK.Assets.ListAssets(this.resourceType, this.resourceID, options)
- // TODO: remove filter below once Oliver fixes options parameter
74
.then((response) => this.assets = response.Items ? response.Items.filter(asset => asset.Type === assetType) : [])
75
.catch((ex) => ex)
76
.finally(() => {
0 commit comments