fix bug where files have same name but differing paths

This commit is contained in:
Blaine Lewis 2024-02-08 10:25:22 -05:00 committed by GitHub
parent ad651d827e
commit 00567dea68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -174,7 +174,7 @@ export default class FileDiffPlugin extends Plugin {
''
);
const originalFile = files.find(
(f) => f.name === originalFileName
(f) => f.name === originalFileName && (file.parent?.path ?? "") === (f.parent?.path ?? "")
);
if (originalFile) {