mirror of
https://github.com/sasjs/server.git
synced 2026-01-05 05:40:06 +00:00
chore(web): remove baseUrl from axios requests
This commit is contained in:
@@ -44,14 +44,14 @@ const SideBar = (props: any) => {
|
||||
const [directoryData, setDirectoryData] = useState<TreeNode | null>(null)
|
||||
|
||||
useEffect(() => {
|
||||
axios.get(`${baseUrl}/SASjsApi/executor`).then((res: any) => {
|
||||
axios.get(`/SASjsApi/executor`).then((res: any) => {
|
||||
if (res.data && res.data?.status === 'success') {
|
||||
setDirectoryData(res.data.tree)
|
||||
}
|
||||
})
|
||||
const queryParams = new URLSearchParams(location.search)
|
||||
props.setSelectedFilePath(queryParams.get('filePath'))
|
||||
}, [baseUrl, location.search, props])
|
||||
}, [location.search, props])
|
||||
|
||||
const handleSelect = (node: TreeNode) => {
|
||||
if (!node.children.length) {
|
||||
|
||||
Reference in New Issue
Block a user