mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix: creating tags with leading/traling slashes (#12778)
This commit is contained in:
parent
caa9b1a041
commit
96516ae4b9
2 changed files with 18 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ export const upsertTags = async (repository: ITagRepository, { userId, tags }: U
|
|||
const results: TagEntity[] = [];
|
||||
|
||||
for (const tag of tags) {
|
||||
const parts = tag.split('/');
|
||||
const parts = tag.split('/').filter(Boolean);
|
||||
let parent: TagEntity | undefined;
|
||||
|
||||
for (const part of parts) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue