2
0
shanghaikid 2 жил өмнө
parent
commit
f87fed632b

+ 1 - 0
client/src/pages/collections/Types.ts

@@ -99,6 +99,7 @@ export interface Field {
   };
   createType?: CreateFieldType;
   max_length?: string | null;
+  autoID?: boolean;
 }
 
 export type CreateFieldType =

+ 1 - 1
client/src/pages/dialogs/CreateCollectionDialog.tsx

@@ -193,7 +193,7 @@ const CreateCollectionDialog: FC<CollectionCreateProps> = ({ onCreate }) => {
           max_length: v.max_length,
         };
 
-        v.is_primary_key && (data.autoID = form.autoID);
+        v.is_primary_key && (v.autoID = form.autoID);
 
         return vectorType.includes(v.data_type)
           ? {

+ 1 - 1
server/package.json

@@ -1,6 +1,6 @@
 {
   "name": "attu",
-  "version": "2.2.2",
+  "version": "2.2.3",
   "license": "MIT",
   "author": {
     "name": "zilliz",