Update script-folder.server.data-source.ts

This commit is contained in:
Mads Rasmussen
2024-01-13 20:53:13 +01:00
parent a3e92047e6
commit e55dd9f5ac

View File

@@ -65,7 +65,7 @@ export class UmbScriptFolderServerDataSource implements UmbFolderDataSource {
if (args.parentUnique === undefined) throw new Error('Parent unique is missing');
if (!args.name) throw new Error('Name is missing');
const parentPath = new UmbServerPathUniqueSerializer().toServerPath(args.parentUnique);
const parentPath = new UmbServerFilePathUniqueSerializer().toServerPath(args.parentUnique);
const requestBody: CreateScriptFolderRequestModel = {
parent: parentPath ? { path: parentPath } : null,