From 4b68d25cc3718a6b9fffdd60d04707cbcc8fc2b2 Mon Sep 17 00:00:00 2001
From: anika-ahluwalia <anika.ahluwalia@gmail.com>
Date: Thu, 25 Jun 2020 22:33:50 -0500
Subject: adjusting menu trigger

---
 .../views/collections/CollectionSchemaView.tsx     | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

(limited to 'src/client/views/collections/CollectionSchemaView.tsx')

diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx
index 9cd13058f..900949b94 100644
--- a/src/client/views/collections/CollectionSchemaView.tsx
+++ b/src/client/views/collections/CollectionSchemaView.tsx
@@ -299,20 +299,24 @@ export class CollectionSchemaView extends CollectionSubView(doc => doc) {
     @action
     closeHeader = () => { this._headerOpen = false; }
 
+    renderKeysDropDown = (col: any) => {
+        return <KeysDropdown
+            keyValue={col.heading}
+            possibleKeys={this.possibleKeys}
+            existingKeys={this.columns.map(c => c.heading)}
+            canAddNew={true}
+            addNew={false}
+            onSelect={this.changeColumns}
+            setIsEditing={this.setHeaderIsEditing}
+        />;
+    }
+
     renderContent = (col: any) => {
         return (
             <div className="collectionSchema-header-menuOptions">
                 <div className="collectionSchema-headerMenu-group">
                     <label>Key:</label>
-                    <KeysDropdown
-                        keyValue={col.heading}
-                        possibleKeys={this.possibleKeys}
-                        existingKeys={this.columns.map(c => c.heading)}
-                        canAddNew={true}
-                        addNew={false}
-                        onSelect={this.changeColumns}
-                        setIsEditing={this.setHeaderIsEditing}
-                    />
+                    {this.renderKeysDropDown(col)}
                 </div>
                 {false ? <></> :
                     <>
-- 
cgit v1.2.3-70-g09d2

