mirror of
https://github.com/samuelncui/yatm.git
synced 2026-01-08 22:23:16 +00:00
fix: backup file under root dir
This commit is contained in:
@@ -176,7 +176,6 @@ const useBackupTargetBrowser = () => {
|
||||
let splitIdx = path.lastIndexOf("/");
|
||||
if (splitIdx < 0) {
|
||||
splitIdx = -1
|
||||
return;
|
||||
}
|
||||
|
||||
return { base: path.slice(0, splitIdx + 1), path: [path.slice(splitIdx + 1)] } as Source;
|
||||
|
||||
Reference in New Issue
Block a user