From 4c1fc6bcfdf603bb8c620f9288da09ed69587bfb Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Tue, 25 May 2021 09:58:55 -0400
Subject: fixed userColors to be set on mySharingDocs data document.  fixed so
 that field is userColor everywhere (not color).

---
 src/client/util/SharingManager.tsx | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

(limited to 'src/client/util/SharingManager.tsx')

diff --git a/src/client/util/SharingManager.tsx b/src/client/util/SharingManager.tsx
index 5a247730e..dc5f488b2 100644
--- a/src/client/util/SharingManager.tsx
+++ b/src/client/util/SharingManager.tsx
@@ -147,7 +147,7 @@ export class SharingManager extends React.Component<{}> {
                             const a1 = await Cast(link?.anchor1, Doc, null);
                             const a2 = await Cast(link?.anchor2, Doc, null);
                         });
-                        sharingDocs.push({ user, sharingDoc, linkDatabase, userColor: StrCast(sharingDoc.color) });
+                        sharingDocs.push({ user, sharingDoc, linkDatabase, userColor: StrCast(sharingDoc.userColor) });
                     }
                 }
             });
@@ -340,11 +340,11 @@ export class SharingManager extends React.Component<{}> {
         if (!uniform) dropdownValues.unshift("-multiple-");
         if (override) dropdownValues.unshift("None");
         return dropdownValues.filter(permission => permission !== SharingPermissions.View).map(permission =>
-        (
-            <option key={permission} value={permission}>
-                {permission === SharingPermissions.Add ? "Can Augment" : permission}
-            </option>
-        )
+            (
+                <option key={permission} value={permission}>
+                    {permission === SharingPermissions.Add ? "Can Augment" : permission}
+                </option>
+            )
         );
     }
 
@@ -518,10 +518,10 @@ export class SharingManager extends React.Component<{}> {
                                 {this.sharingOptions(uniform)}
                             </select>
                         ) : (
-                            <div className={"permissions-dropdown"}>
-                                {permissions === SharingPermissions.Add ? "Can Augment" : permissions}
-                            </div>
-                        )}
+                                <div className={"permissions-dropdown"}>
+                                    {permissions === SharingPermissions.Add ? "Can Augment" : permissions}
+                                </div>
+                            )}
                     </div>
                 </div>
             );
@@ -592,10 +592,10 @@ export class SharingManager extends React.Component<{}> {
                                 {this.sharingOptions(uniform, group.title === "Override")}
                             </select>
                         ) : (
-                            <div className={"permissions-dropdown"}>
-                                {permissions}
-                            </div>
-                        )}
+                                <div className={"permissions-dropdown"}>
+                                    {permissions}
+                                </div>
+                            )}
                     </div>
                 </div>
             );
-- 
cgit v1.2.3-70-g09d2

