diff --git a/package.json b/package.json index ffc3f13..6e9edb8 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "lint-web:fix": "npx prettier --write \"web/src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"", "lint-web": "npx prettier --check \"web/src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"", "lint": "npm run lint-api && npm run lint-web", - "lint:fix": "npm run lint-api-fix && npm run lint-web-fix" + "lint:fix": "npm run lint-api:fix && npm run lint-web:fix" }, "devDependencies": { "prettier": "^2.3.1" diff --git a/web/src/containers/Drive/main.tsx b/web/src/containers/Drive/main.tsx index a8da137..953fc88 100644 --- a/web/src/containers/Drive/main.tsx +++ b/web/src/containers/Drive/main.tsx @@ -25,9 +25,11 @@ const Main = (props: any) => { .get(`/SASjsApi/files?filePath=${props.selectedFilePath}`) .then((res: any) => { setFileContent(res.data.fileContent) - }).catch((err) => { + }) + .catch((err) => { console.log(err) - }).finally(() => { + }) + .finally(() => { setIsLoading(false) }) } @@ -46,9 +48,11 @@ const Main = (props: any) => { }) .then((res) => { setEditMode(false) - }).catch((err) => { + }) + .catch((err) => { console.log(err) - }).finally(() => { + }) + .finally(() => { setIsLoading(false) }) } diff --git a/web/src/containers/Drive/sideBar.tsx b/web/src/containers/Drive/sideBar.tsx index cbf033f..c1ab727 100644 --- a/web/src/containers/Drive/sideBar.tsx +++ b/web/src/containers/Drive/sideBar.tsx @@ -44,13 +44,16 @@ const SideBar = (props: any) => { const [directoryData, setDirectoryData] = useState(null) useEffect(() => { - axios.get(`/SASjsApi/executor`).then((res: any) => { - if (res.data && res.data?.status === 'success') { - setDirectoryData(res.data.tree) - } - }).catch((err) => { - console.log(err) - }) + axios + .get(`/SASjsApi/executor`) + .then((res: any) => { + if (res.data && res.data?.status === 'success') { + setDirectoryData(res.data.tree) + } + }) + .catch((err) => { + console.log(err) + }) const queryParams = new URLSearchParams(location.search) props.setSelectedFilePath(queryParams.get('filePath')) }, []) diff --git a/web/src/index.tsx b/web/src/index.tsx index 572eacf..606a3cf 100644 --- a/web/src/index.tsx +++ b/web/src/index.tsx @@ -3,11 +3,9 @@ import ReactDOM from 'react-dom' import './index.css' import App from './App' - ReactDOM.render( , document.getElementById('root') ) -