From 7a3e56de46c86e79abac0c485d390642699b135b Mon Sep 17 00:00:00 2001 From: Mikhail Petrov Date: Thu, 5 Dec 2024 13:15:03 +0300 Subject: [PATCH] fix Signed-off-by: Mikhail Petrov --- src/Components/ContainerItem/ContainerItem.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Components/ContainerItem/ContainerItem.js b/src/Components/ContainerItem/ContainerItem.js index a7da612..ab7e3a0 100644 --- a/src/Components/ContainerItem/ContainerItem.js +++ b/src/Components/ContainerItem/ContainerItem.js @@ -34,7 +34,7 @@ export default function ContainerItem({ }); const [filters, setFilters] = useState([{ key: '', - match: 'MatchCommonPrefix', + match: 'MatchStringEqual', value: '', }]); const [objects, setObjects] = useState(null); @@ -89,7 +89,6 @@ export default function ContainerItem({ const onGetObjects = (containerId, pageTemp = pagination.page) => { setPagination({ ...pagination, page: pageTemp}); setLoadingObjects(true); - api('POST', `/objects/${containerId}/search?limit=${ObjectsPerPage}&offset=${pageTemp * ObjectsPerPage}`, { filters: filters.every((item) => item.key !== '' && item.value !== '') ? filters : [], }, { @@ -347,7 +346,7 @@ export default function ContainerItem({ let filtersTemp = [ ...filters ]; filtersTemp.push({ key: '', - match: 'MatchCommonPrefix', + match: 'MatchStringEqual', value: '', }); setFilters(filtersTemp);