From 2b6fe74e1aba1f52bfcbcfd48e5f865a13d8641d Mon Sep 17 00:00:00 2001 From: Maria Khrustaleva Date: Mon, 4 Apr 2022 09:06:48 +0300 Subject: [PATCH] Fix filter (#4541) --- .../src/components/file-manager/cloud-storages-tab.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cvat-ui/src/components/file-manager/cloud-storages-tab.tsx b/cvat-ui/src/components/file-manager/cloud-storages-tab.tsx index 0aabdd49..93f00802 100644 --- a/cvat-ui/src/components/file-manager/cloud-storages-tab.tsx +++ b/cvat-ui/src/components/file-manager/cloud-storages-tab.tsx @@ -1,4 +1,4 @@ -// Copyright (C) 2021 Intel Corporation +// Copyright (C) 2021-2022 Intel Corporation // // SPDX-License-Identifier: MIT @@ -44,7 +44,13 @@ async function searchCloudStorages(filter: Record): Promise { - const filter = { displayName: phrase }; + const filter = { + filter: JSON.stringify({ + and: [{ + '==': [{ var: 'display_name' }, phrase], + }], + }), + }; searchCloudStorages(filter).then((list) => { setList(list); });