Skip to content

Commit

Permalink
fix isNamedVectorCondition (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
generall authored Aug 21, 2024
1 parent 80865f7 commit 1879fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Collections/SearchQuality/SearchQuality.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 1879fb3

Please sign in to comment.