diff --git a/libs/remix-ui/git/src/lib/gitactions.ts b/libs/remix-ui/git/src/lib/gitactions.ts index d28348af74..ddf6fad2c8 100644 --- a/libs/remix-ui/git/src/lib/gitactions.ts +++ b/libs/remix-ui/git/src/lib/gitactions.ts @@ -218,6 +218,9 @@ export const addall = async (files: fileStatusResult[]) => { export const add = async (filepath: addInput) => { try { + if(typeof filepath.filepath === "string") { + filepath.filepath = removeSlash(filepath.filepath) + } await plugin.call('dgitApi', 'add', filepath); sendToGitLog({ type: 'success',