From 1879fb3d81893c4ee213c98dcee0a835414a6c45 Mon Sep 17 00:00:00 2001 From: Andrey Vasnetsov Date: Wed, 21 Aug 2024 17:26:43 +0200 Subject: [PATCH] fix isNamedVectorCondition (#214) --- src/components/Collections/SearchQuality/SearchQuality.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Collections/SearchQuality/SearchQuality.jsx b/src/components/Collections/SearchQuality/SearchQuality.jsx index 454c67b0..5bc89359 100644 --- a/src/components/Collections/SearchQuality/SearchQuality.jsx +++ b/src/components/Collections/SearchQuality/SearchQuality.jsx @@ -42,7 +42,7 @@ const SearchQuality = ({ collectionName }) => { }, []); // Check that collection.config.params.vectors?.size exists and integer - const isNamedVectors = collection?.config?.params.vectors?.size && !_.isObject(collection?.config?.params?.vectors); + const isNamedVectors = !collection?.config?.params.vectors?.size && _.isObject(collection?.config?.params?.vectors); let vectors = {}; if (collection) { vectors = isNamedVectors ? collection?.config?.params?.vectors : { '': collection?.config?.params?.vectors };