Skip to content

Commit

Permalink
fixed bug for move and rename file operations in root of a system (#862)
Browse files Browse the repository at this point in the history
Co-authored-by: Sal Tijerina <[email protected]>
  • Loading branch information
shayanaijaz and rstijerina authored Sep 29, 2023
1 parent 9caf6a8 commit 9b53589
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ const DataFilesMoveModal = React.memo(() => {

const onOpened = () => {
fetchListing({
api: 'tapis',
scheme: 'private',
system: selectedSystem.system,
path: `${selectedSystem.homeDir || ''}`,
...params,
});
};

Expand All @@ -68,7 +65,7 @@ const DataFilesMoveModal = React.memo(() => {
setDisabled(true);
move({
destSystem: system,
destPath: path,
destPath: path || '/',
callback: reloadPage,
});
},
Expand Down
2 changes: 1 addition & 1 deletion client/src/redux/sagas/datafiles.sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export function* renameFile(action) {
action.payload.api,
action.payload.scheme,
file.system,
file.path,
'/' + file.path,
action.payload.newName
);
yield put({
Expand Down

0 comments on commit 9b53589

Please sign in to comment.