浏览代码

feat: enable create index for primary key

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 10 月之前
父节点
当前提交
25cbaa30ab
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      client/src/pages/databases/collections/overview/IndexTypeElement.tsx

+ 1 - 2
client/src/pages/databases/collections/overview/IndexTypeElement.tsx

@@ -172,7 +172,7 @@ const IndexTypeElement: FC<{
     );
 
     return tooltip ? (
-      <Tooltip interactive arrow title={tooltip} placement="top">
+      <Tooltip arrow title={tooltip} placement="top">
         <div>
           <IndexElem />
         </div>
@@ -184,7 +184,6 @@ const IndexTypeElement: FC<{
 
   const generateElement = () => {
     if (
-      field.is_primary_key ||
       NONE_INDEXABLE_DATA_TYPES.indexOf(
         field.data_type as DataTypeStringEnum
       ) !== -1