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 };