Skip to content

Commit

Permalink
RHOAIENG-13981: File dependencies browsing does not select file
Browse files Browse the repository at this point in the history
  • Loading branch information
paulovmr committed Oct 4, 2024
1 parent 74e88cf commit 7991a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui-components/src/BrowseFileDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ export const showBrowseFileDialog = async (
const relativeToPath = options.rootPath.endsWith('/')
? options.rootPath
: options.rootPath + '/';
result.value.forEach((val: string) => {
val = val.replace(relativeToPath, '');
result.value = result.value.map((val: string) => {
return val.replace(relativeToPath, '');
});
}

Expand Down

0 comments on commit 7991a86

Please sign in to comment.