Skip to content

Commit 22a87cb

Browse files
committed
Revert part of 4f25b19 as it’s unnecessary
1 parent 386b13f commit 22a87cb

File tree

2 files changed

+1
-169
lines changed

2 files changed

+1
-169
lines changed

src/lib/services/contents/fields/file/process.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,7 @@ export const convertFileItemToAsset = async ({ file, blobURL, folder, targetFold
5555
file,
5656
blobURL: blobURL ?? URL.createObjectURL(file),
5757
name,
58-
path: targetFolderPath
59-
? // Append a placeholder if the folder is entry-relative because the complete path is not
60-
// determined until the entry is saved
61-
`${targetFolderPath}/${folder?.entryRelative ? '-/' : ''}${name}`
62-
: name,
58+
path: targetFolderPath ? `${targetFolderPath}/${name}` : name,
6359
sha: await getGitHash(file),
6460
size,
6561
kind: getAssetKind(name),

src/lib/services/contents/fields/file/process.test.js

Lines changed: 0 additions & 164 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)