From 863325f2d89813bd54bed6fe7c6f9af5db03e1d1 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Mon, 13 May 2024 09:03:06 -0400
Subject: clean up transformer to typescript

---
 src/client/views/nodes/DocumentIcon.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/client/views/nodes/DocumentIcon.tsx')

diff --git a/src/client/views/nodes/DocumentIcon.tsx b/src/client/views/nodes/DocumentIcon.tsx
index 23d934edb..ffd350e92 100644
--- a/src/client/views/nodes/DocumentIcon.tsx
+++ b/src/client/views/nodes/DocumentIcon.tsx
@@ -4,7 +4,7 @@ import { observer } from 'mobx-react';
 import * as React from 'react';
 import { factory } from 'typescript';
 import { FieldType } from '../../../fields/Doc';
-import { Id } from '../../../fields/FieldSymbols';
+import { ToJavascriptString } from '../../../fields/FieldSymbols';
 import { StrCast } from '../../../fields/Types';
 import { Transformer, ts } from '../../util/Scripting';
 import { SnappingManager } from '../../util/SnappingManager';
@@ -66,7 +66,7 @@ export class DocumentIconContainer extends React.Component {
                                 const m = parseInt(match[1]);
                                 const doc = DocumentView.allViews()[m].Document;
                                 usedDocuments.add(m);
-                                return factory.createIdentifier(`idToDoc("${doc[Id]}")`);
+                                return factory.createIdentifier(doc[ToJavascriptString]()); // `idToDoc("${doc[Id]}")`);
                             }
                         }
                     }
-- 
cgit v1.2.3-70-g09d2

