mirror of
https://github.com/sasjs/server.git
synced 2026-01-07 06:30:06 +00:00
fix(root-package.json): lint:fix command fixed in root package json
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -44,13 +44,16 @@ const SideBar = (props: any) => {
|
||||
const [directoryData, setDirectoryData] = useState<TreeNode | null>(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'))
|
||||
}, [])
|
||||
|
||||
Reference in New Issue
Block a user