Skip to content

Commit

Permalink
fix: magnet task file path did not start with dir
Browse files Browse the repository at this point in the history
  • Loading branch information
agalwood committed Feb 20, 2019
1 parent 5c36454 commit c12c130
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shared/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ export function getTaskFullPath (task) {
let fileName = ''

if (path) {
result = path
// Magnet task file's path did not start with dir
result = path.startsWith(dir) ? path : result
} else {
if (files && files.length === 1) {
fileName = getFileName(file)
Expand Down

0 comments on commit c12c130

Please sign in to comment.