File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,13 @@ export default function TDViewer() {
6868 fileHandle : file ,
6969 } ;
7070 try {
71+ let linkedTd = { } ;
72+ linkedTd [ fileData . fileName ] = fileData . fileHandle
7173 context . updateOfflineTD ( fileData . td ) ;
7274 context . updateIsModified ( false ) ;
7375 context . setFileHandle ( fileData . fileName ) ;
7476 context . updateLinkedTd ( undefined ) ;
75- context . addLinkedTd ( fileData . fileHandle ) ;
77+ context . addLinkedTd ( linkedTd ) ;
7678 } catch ( e ) {
7779 console . error ( "File processing:" , e ) ;
7880 }
@@ -86,8 +88,7 @@ export default function TDViewer() {
8688 onDrop,
8789 accept : {
8890 "application/json" : [ ".json" ] ,
89- "application/ld+json" : [ ".jsonld" ] ,
90- "text/csv" : [ ".csv" ] ,
91+ "application/ld+json" : [ ".jsonld" ]
9192 } ,
9293 noClick : true ,
9394 maxFiles : 1 ,
You can’t perform that action at this time.
0 commit comments