From 971a108ab168be535f27aab121603b7d7beea2f3 Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Fri, 26 May 2023 14:19:25 +0200 Subject: [PATCH] catalog-react: add clarifying comment to EntityUserListFilter Signed-off-by: Vincenzo Scamporlino --- plugins/catalog-react/src/filters.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/catalog-react/src/filters.ts b/plugins/catalog-react/src/filters.ts index bafaae4fb2..5879d91591 100644 --- a/plugins/catalog-react/src/filters.ts +++ b/plugins/catalog-react/src/filters.ts @@ -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 =>