fix(systemtags): Correctly load tagged files in "tags"-files-view

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2024-08-08 01:07:45 +02:00
parent 749dc7d9ae
commit 82f7368e10
No known key found for this signature in database
GPG key ID: 45FAE7268762B400

View file

@ -57,7 +57,7 @@ export const getContents = async (path = '/'): Promise<ContentsWithRoot> => {
}
}
const tagId = parseInt(path.split('/', 2)[0])
const tagId = parseInt(path.split('/', 2)[1])
const tag = tagsCache.find(tag => tag.id === tagId)
if (!tag) {