mirror of
https://github.com/sasjs/server.git
synced 2026-01-08 07:00:04 +00:00
fix(weeb): add catch block with each axios request
This commit is contained in:
@@ -48,10 +48,12 @@ const SideBar = (props: 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'))
|
||||
}, [location.search, props])
|
||||
}, [])
|
||||
|
||||
const handleSelect = (node: TreeNode) => {
|
||||
if (!node.children.length) {
|
||||
|
||||
Reference in New Issue
Block a user