Skip to content

Commit

Permalink
save the full name of a folder before splitting it into parts
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-livefront committed Jan 10, 2025
1 parent 706c388 commit b16fe41
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ export class VaultFilterService implements VaultFilterServiceAbstraction {
folderCopy.id = f.id;
folderCopy.revisionDate = f.revisionDate;
folderCopy.icon = "bwi-folder";
folderCopy.fullName = f.name; // save full folder name before separating it into parts
const parts = f.name != null ? f.name.replace(/^\/+|\/+$/g, "").split(NestingDelimiter) : [];
ServiceUtils.nestedTraverse(nodes, 0, parts, folderCopy, null, NestingDelimiter);
});
Expand Down

0 comments on commit b16fe41

Please sign in to comment.