catalog-react: add clarifying comment to EntityUserListFilter

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2023-05-26 14:19:25 +02:00
parent 78b2610717
commit 971a108ab1
+4
View File
@@ -237,6 +237,10 @@ export class EntityUserListFilter implements EntityFilter {
if (this.value === 'starred') {
return this.refs?.includes(stringifyEntityRef(entity)) ?? true;
}
// used only for retro-compatibility with the old
// non paginated table. This is supposed to return always true
// for paginated owned entities, since the filters are applied
// server side.
if (this.value === 'owned') {
return (
this.refs?.some(v =>