We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a1e013 commit a14168aCopy full SHA for a14168a
src/collection-browser.ts
@@ -815,9 +815,12 @@ export class CollectionBrowser
815
this.dispatchEvent(
816
new CustomEvent<{ items: string[] }>('itemRemovalRequested', {
817
detail: {
818
- items: this.dataSource.checkedTileModels.map(model =>
819
- model?.identifier ? model.identifier : '',
820
- ),
+ items: this.dataSource.checkedTileModels.map(model => {
+ // For favorited searches, we attach a search: prefix to differentiate it from an item
+ const searchPrefix = model?.mediatype === 'search' ? 'search:' : '';
821
+ const identifier = model?.identifier ?? '';
822
+ return `${searchPrefix}${identifier}`;
823
+ }),
824
},
825
}),
826
);
0 commit comments