diff options
author | bobzel <zzzman@gmail.com> | 2022-06-03 16:02:24 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-06-03 16:02:24 -0400 |
commit | ba7824a91da113cc813c58b678719092c96d79a2 (patch) | |
tree | 4b79859da0933b6634afcc66ade3de199e70d33d /src/client/views/nodes/DocumentIcon.tsx | |
parent | 31b2606fa6ac49b0a78e46fcedff05fd2e2366b7 (diff) |
fixed opening closed tabs from Files sidebar to re-use best Alias before making a new alias.
Diffstat (limited to 'src/client/views/nodes/DocumentIcon.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentIcon.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentIcon.tsx b/src/client/views/nodes/DocumentIcon.tsx index a9c998757..56de2d1fc 100644 --- a/src/client/views/nodes/DocumentIcon.tsx +++ b/src/client/views/nodes/DocumentIcon.tsx @@ -52,7 +52,7 @@ export class DocumentIconContainer extends React.Component { }; }, getVars() { - const docs = DocumentManager.Instance.DocumentViews; + const docs = Array.from(DocumentManager.Instance.DocumentViews); const capturedVariables: { [name: string]: Field } = {}; usedDocuments.forEach(index => capturedVariables[`d${index}`] = docs[index].props.Document); return { capturedVariables }; @@ -60,6 +60,6 @@ export class DocumentIconContainer extends React.Component { }; } render() { - return DocumentManager.Instance.DocumentViews.map((dv, i) => <DocumentIcon key={i} index={i} view={dv} />); + return Array.from(DocumentManager.Instance.DocumentViews).map((dv, i) => <DocumentIcon key={i} index={i} view={dv} />); } }
\ No newline at end of file |