From 24fad06cbd2e273bb6729f21956e35243e602bb7 Mon Sep 17 00:00:00 2001
From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com>
Date: Fri, 21 Jun 2024 12:37:47 -0400
Subject: fixed bug where equation didn't save in cell field on reloading
 (batching issue)

---
 src/client/views/collections/collectionSchema/CollectionSchemaView.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
index 6838662c7..308520154 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
@@ -587,7 +587,7 @@ export class CollectionSchemaView extends CollectionSubView() {
             const color = randomRGBColor();
             const doc = info[0]; 
             const field = info[1];
-            const key = `${doc}_${field}`;
+            const key = `${doc[Id]}_${field}`;
             const cell = this.getCellElement(doc, field);
             if (!this._cellHighlightColors.has(key)) {this._cellHighlightColors.set(key, new Array<string>(`solid 2px ${color[0]}`, color[1]))}
             cell.style.border = this._cellHighlightColors.get(key)[0];
-- 
cgit v1.2.3-70-g09d2

