Browse Source

check is primary key

nameczz 4 years ago
parent
commit
f289fafb79
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/src/collections/collections.service.ts

+ 1 - 1
server/src/collections/collections.service.ts

@@ -112,7 +112,7 @@ export class CollectionsService {
         });
         });
         const autoID = collectionInfo.schema.fields.find(
         const autoID = collectionInfo.schema.fields.find(
           (v) => v.is_primary_key === true,
           (v) => v.is_primary_key === true,
-        ).autoID;
+        )?.autoID;
 
 
         data.push({
         data.push({
           collection_name: name,
           collection_name: name,