fix: hide pagination query params if pagination mode is set to none
Signed-off-by: Vödisch, Alexander <A72749@eon.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-react': patch
|
||||
---
|
||||
|
||||
fix: hide pagination query params if pagination mode is set to none
|
||||
@@ -346,7 +346,11 @@ export const EntityListProvider = <EntityFilters extends DefaultEntityFilters>(
|
||||
ignoreQueryPrefix: true,
|
||||
});
|
||||
const newParams = qs.stringify(
|
||||
{ ...oldParams, filters: queryParams, cursor, offset, limit },
|
||||
{
|
||||
...oldParams,
|
||||
filters: queryParams,
|
||||
...(paginationMode === 'none' ? {} : { cursor, limit, offset }),
|
||||
},
|
||||
{ addQueryPrefix: true, arrayFormat: 'repeat' },
|
||||
);
|
||||
const newUrl = `${window.location.pathname}${newParams}`;
|
||||
|
||||
Reference in New Issue
Block a user