Преглед изворни кода

ui: fix the column gap is too large for the data page

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang пре 9 месеци
родитељ
комит
e3ad2c6e26
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      client/src/pages/databases/collections/data/CollectionData.tsx

+ 1 - 1
client/src/pages/databases/collections/data/CollectionData.tsx

@@ -514,7 +514,7 @@ const CollectionData = (props: CollectionDataProps) => {
                       return cellData;
                       return cellData;
                   }
                   }
                 },
                 },
-                field: i,
+                field: collection.schema.fields.find(f => f.name === i),
                 getStyle: d => {
                 getStyle: d => {
                   if (!d || !d.field) {
                   if (!d || !d.field) {
                     return {};
                     return {};