1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 11:24:35 +00:00

fix: show content of get file api

This commit is contained in:
Saad Jutt
2022-03-06 18:45:07 +05:00
parent fa4da7624b
commit 6ab42ca486

View File

@@ -25,7 +25,7 @@ const Main = (props: any) => {
axios
.get(`/SASjsApi/drive/file?filePath=${props.selectedFilePath}`)
.then((res: any) => {
setFileContent(res.data.fileContent)
setFileContent(res.data)
})
.catch((err) => {
console.log(err)