fix(xo-web/file-restore): incorrect line-through on similar filenames (#3447)
This commit is contained in:
parent
4147800266
commit
7ddc595a1c
@ -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
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user