diff options
author | Aubrey-Li <63608597+Aubrey-Li@users.noreply.github.com> | 2021-07-24 11:15:04 -0700 |
---|---|---|
committer | Aubrey-Li <63608597+Aubrey-Li@users.noreply.github.com> | 2021-07-24 11:15:04 -0700 |
commit | aa67222bc1a80ae11d1a29b32d5cb54199b38011 (patch) | |
tree | 5fa6cad23c09370b326e69fb8594c32b8a6e35d7 /src/client/documents/Documents.ts | |
parent | 53dfd5f380d8c75fedc967577fb16310d08cefea (diff) |
backend issues with creating map node
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 5ec0b0063..b17d3b3a1 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -802,8 +802,8 @@ export namespace Docs { return InstanceFromProto(Prototypes.get(DocumentType.WEB), new HtmlField(html), options); } - export function MapDocument(initial: List<Doc> = new List(), options: DocumentOptions = {}) { - return InstanceFromProto(Prototypes.get(DocumentType.MAP), initial, options); + export function MapDocument(url: string, options: DocumentOptions = {}) { + return InstanceFromProto(Prototypes.get(DocumentType.MAP), new MapField(new URL(url)), options); } export function KVPDocument(document: Doc, options: DocumentOptions = {}) { |