1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-16 10:20:05 +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 axios
.get(`/SASjsApi/drive/file?filePath=${props.selectedFilePath}`) .get(`/SASjsApi/drive/file?filePath=${props.selectedFilePath}`)
.then((res: any) => { .then((res: any) => {
setFileContent(res.data.fileContent) setFileContent(res.data)
}) })
.catch((err) => { .catch((err) => {
console.log(err) console.log(err)