From 107727c65de24fb83c2df25ee47d7fcc74cc1d10 Mon Sep 17 00:00:00 2001 From: ChrisScott9456 Date: Thu, 16 Jul 2026 11:53:43 -0400 Subject: [PATCH] Use resolveSongPath in use-metadata-editor --- .../features/tag-editor/hooks/use-metadata-editor.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/features/tag-editor/hooks/use-metadata-editor.ts b/src/renderer/features/tag-editor/hooks/use-metadata-editor.ts index 8835def03..63c7b2a9a 100644 --- a/src/renderer/features/tag-editor/hooks/use-metadata-editor.ts +++ b/src/renderer/features/tag-editor/hooks/use-metadata-editor.ts @@ -14,6 +14,7 @@ import { base64ToBytes, formatBatchFileErrors } from '../utils/utils'; import { controller } from '/@/renderer/api/controller'; import { useCurrentServer } from '/@/renderer/store'; +import { resolveSongPath } from '/@/renderer/utils/resolve-song-path'; import { toast } from '/@/shared/components/toast/toast'; import { Song } from '/@/shared/types/domain-types'; @@ -121,7 +122,7 @@ export const useMetadataEditor = ({ browser, songs: songsProp, utils }: UseMetad } setResolvedSongs(songs); - const paths = songs.map((s) => s.path!); + const paths = songs.map((s) => resolveSongPath(s.path)).filter(Boolean) as string[]; const batchResult = await withBatchProgress(utils, setLoadProgress, () => utils.readSongMetadataBatch(paths), @@ -261,7 +262,7 @@ export const useMetadataEditor = ({ browser, songs: songsProp, utils }: UseMetad } setIsSaving(true); - const paths = resolvedSongs.map((s) => s.path!).filter(Boolean); + const paths = resolvedSongs.map((s) => resolveSongPath(s.path)).filter(Boolean) as string[]; try { const writeResult = await withBatchProgress(utils, setLoadProgress, () =>