Update document.server.data.ts

This commit is contained in:
Mads Rasmussen
2023-09-14 11:34:24 +02:00
parent 7cc109b7fe
commit bf8c81d5ef

View File

@@ -56,14 +56,10 @@ export class UmbDocumentServerDataSource
* @memberof UmbDocumentServerDataSource
*/
async createScaffold(documentTypeId: string, preset?: Partial<CreateDocumentRequestModel>) {
const id = UmbId.new();
const hackID = id === null ? undefined : id;
const data: DocumentResponseModel = {
urls: [],
templateId: null,
parentId: null,
id: hackID,
contentTypeId: documentTypeId,
values: [],
variants: [
@@ -78,6 +74,7 @@ export class UmbDocumentServerDataSource
},
],
...preset,
id: UmbId.new(),
};
return { data };