Explorar o código

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

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang hai 9 meses
pai
achega
e3ad2c6e26

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

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