don't double encode

This commit is contained in:
Mads Rasmussen
2024-03-26 19:57:08 +01:00
parent 217813b4c5
commit ebfc0290b3
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ export class UmbPartialViewItemServerDataSource implements UmbItemDataSource<Umb
const paths = uniques
.map((unique) => {
const serverPath = this.#serverFilePathUniqueSerializer.toServerPath(unique);
return serverPath ? encodeURI(serverPath) : null;
return serverPath ? serverPath : null;
})
.filter((x) => x !== null) as string[];

View File

@@ -37,7 +37,7 @@ export class UmbScriptItemServerDataSource implements UmbItemDataSource<UmbScrip
const paths = uniques
.map((unique) => {
const serverPath = this.#serverFilePathUniqueSerializer.toServerPath(unique);
return serverPath ? encodeURI(serverPath) : null;
return serverPath ? serverPath : null;
})
.filter((x) => x !== null) as string[];