Fix filter (#4541)

main
Maria Khrustaleva 4 years ago committed by GitHub
parent 737ee712d2
commit 2b6fe74e1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,4 @@
// Copyright (C) 2021 Intel Corporation // Copyright (C) 2021-2022 Intel Corporation
// //
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
@ -44,7 +44,13 @@ async function searchCloudStorages(filter: Record<string, string>): Promise<Clou
const { Option } = Select; const { Option } = Select;
const searchCloudStoragesWrapper = debounce((phrase, setList) => { const searchCloudStoragesWrapper = debounce((phrase, setList) => {
const filter = { displayName: phrase }; const filter = {
filter: JSON.stringify({
and: [{
'==': [{ var: 'display_name' }, phrase],
}],
}),
};
searchCloudStorages(filter).then((list) => { searchCloudStorages(filter).then((list) => {
setList(list); setList(list);
}); });

Loading…
Cancel
Save