update token name

This commit is contained in:
Mads Rasmussen
2023-12-08 19:16:21 +01:00
parent fa39ee6848
commit 255ccdd7e0

View File

@@ -21,11 +21,7 @@ export class UmbMediaItemStore
* @memberof UmbMediaItemStore
*/
constructor(host: UmbControllerHostElement) {
super(
host,
UMB_Media_ITEM_STORE_CONTEXT_TOKEN.toString(),
new UmbArrayState<MediaItemResponseModel>([], (x) => x.id),
);
super(host, UMB_MEDIA_ITEM_STORE_CONTEXT.toString(), new UmbArrayState<MediaItemResponseModel>([], (x) => x.id));
}
items(ids: Array<string>) {
@@ -33,4 +29,4 @@ export class UmbMediaItemStore
}
}
export const UMB_Media_ITEM_STORE_CONTEXT_TOKEN = new UmbContextToken<UmbMediaItemStore>('UmbMediaItemStore');
export const UMB_MEDIA_ITEM_STORE_CONTEXT = new UmbContextToken<UmbMediaItemStore>('UmbMediaItemStore');