Skip to content

Commit

Permalink
fixes linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ramprasadagarwal committed Jan 6, 2025
1 parent f3b0488 commit 62effa3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ const StorageBrowserPage = (): JSX.Element => {
items={fileSystems?.map(system => ({
label: system.file_system.toUpperCase(),
key: system.file_system + '_tab',
children: <StorageBrowserTab homeDir={system.user_home_directory} fileSystem={system.file_system} />
children: (
<StorageBrowserTab
homeDir={system.user_home_directory}
fileSystem={system.file_system}
/>
)
}))}
/>
</Spin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ const defaultProps = {
testId: 'hue-storage-browser-tab-content'
};

const StorageBrowserTab = ({ homeDir, fileSystem, testId }: StorageBrowserTabProps): JSX.Element => {
const StorageBrowserTab = ({
homeDir,
fileSystem,
testId
}: StorageBrowserTabProps): JSX.Element => {
const [urlPathname, urlFilePath] = decodeURIComponent(window.location.pathname).split('view=');
const { fileSystem: urlFileSystem } = getFileSystemAndPath(urlFilePath);
const initialFilePath = urlFileSystem === fileSystem ? urlFilePath : homeDir;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const getFileSystemAndPath = (
return {
fileSystem: '',
path: ''
}
};
}
if (filePath.includes('://')) {
const [fileSystem, path] = filePath.split('://');
Expand Down

0 comments on commit 62effa3

Please sign in to comment.