Remove trailing slash

This commit is contained in:
Olivia Godone-Maresca 2023-02-16 21:08:41 -05:00
parent 9bec441e94
commit fc2cf742c8

View File

@ -597,7 +597,7 @@ class ModelDropdown
foldersMap.set(
childFolderName,
this.createModelNodeList(
`${folderName || '/'}${childFolderName}/`,
`${folderName || ''}/${childFolderName}`,
childModels,
false,
),
@ -607,7 +607,7 @@ class ModelDropdown
if (isRootFolder) {
classes.push('in-root-folder')
}
const fullPath = `${folderName || ''}${model}`
const fullPath = `${folderName || ''}/${model}`
modelsMap.set(
model,
this.createElement('li', { 'data-path': fullPath }, classes, model),