File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,9 @@ export class StorageFileApi {
5555 } )
5656
5757 if ( res . ok ) {
58- const data = await res . json ( )
59- return { data, error : null }
58+ // const data = await res.json()
59+ // temporary fix till backend is updated to the latest storage-api version
60+ return { data : { Key : _path } , error : null }
6061 } else {
6162 const error = await res . json ( )
6263 return { data : null , error }
@@ -95,8 +96,9 @@ export class StorageFileApi {
9596 } )
9697
9798 if ( res . ok ) {
98- const data = await res . json ( )
99- return { data, error : null }
99+ // const data = await res.json()
100+ // temporary fix till backend is updated to the latest storage-api version
101+ return { data : { Key : _path } , error : null }
100102 } else {
101103 const error = await res . json ( )
102104 return { data : null , error }
You can’t perform that action at this time.
0 commit comments