diff options
author | bob <bcz@cs.brown.edu> | 2019-04-10 15:18:12 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-04-10 15:18:12 -0400 |
commit | 1c660a6e768cea8d5e162be8082659743792cc3d (patch) | |
tree | ea94bdf40585c3d1b14e998b03aed7322e8b07e4 /src/client/documents/Documents.ts | |
parent | d4326a225f3e801c98e4acdc6558af1c3fe6ae07 (diff) | |
parent | b03261853e191d4f70dd9d3fc70706f399533066 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index f8438e093..3c36fe500 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -208,7 +208,7 @@ export namespace Documents { } export async function DBDocument(url: string, options: DocumentOptions = {}) { let schemaName = options.title ? options.title : "-no schema-"; - let ctlog = await Gateway.Instance.GetSchema(url, schemaName) + let ctlog = await Gateway.Instance.GetSchema(url, schemaName); if (ctlog && ctlog.schemas) { let schema = ctlog.schemas[0]; let schemaDoc = Documents.TreeDocument([], { ...options, nativeWidth: undefined, nativeHeight: undefined, width: 150, height: 100, title: schema.displayName! }); @@ -228,7 +228,7 @@ export namespace Documents { })); }); return schemaDoc; - }; + } return Documents.TreeDocument([], { width: 50, height: 100, title: schemaName }); } export function WebDocument(url: string, options: DocumentOptions = {}) { |