fix(xo-web/file-restore): incorrect line-through on similar filenames (#3447)

This commit is contained in:
Pierre Donias 2018-09-24 11:09:45 +02:00 committed by Julien Fontanet
parent 4147800266
commit 7ddc595a1c
2 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,7 @@
### Bug fixes
[File restore] Fix a path issue when going back to the parent folder (PR [#3446](https://github.com/vatesfr/xen-orchestra/pull/3446))
[File restore] Fix a minor issue when showing which selected files are redundant (PR [#3447](https://github.com/vatesfr/xen-orchestra/pull/3447))
### Released packages

View File

@ -260,8 +260,10 @@ export default class RestoreFileModalBody extends Component {
const redundantFiles = {}
forEach(files, file => {
redundantFiles[file.path] =
find(files, f => f !== file && startsWith(file.path, f.path)) !==
undefined
find(
files,
f => !f.isFile && f !== file && startsWith(file.path, f.path)
) !== undefined
})
return redundantFiles
}