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 {
55
55
} )
56
56
57
57
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 }
60
61
} else {
61
62
const error = await res . json ( )
62
63
return { data : null , error }
@@ -95,8 +96,9 @@ export class StorageFileApi {
95
96
} )
96
97
97
98
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 }
100
102
} else {
101
103
const error = await res . json ( )
102
104
return { data : null , error }
You can’t perform that action at this time.
0 commit comments