File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
shared/containers/EDU/styles Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -66,16 +66,17 @@ class ApiService {
66
66
*/
67
67
async getAsset ( id ) {
68
68
const res = await this . client . getAsset ( id ) ;
69
- return res ;
69
+ return res . stringifySafe ? JSON . parse ( res . stringifySafe ( ) ) : res ;
70
70
}
71
71
72
72
/**
73
73
* Gets the specified content entry.
74
74
* @param {String } id Entry ID.
75
75
* @return {Promise }
76
76
*/
77
- getEntry ( id ) {
78
- return this . client . getEntry ( id ) ;
77
+ async getEntry ( id ) {
78
+ const res = await this . client . getEntry ( id ) ;
79
+ return res . stringifySafe ? JSON . parse ( res . stringifySafe ( ) ) : res ;
79
80
}
80
81
81
82
/**
@@ -85,16 +86,17 @@ class ApiService {
85
86
*/
86
87
async queryAssets ( query ) {
87
88
const res = await this . client . getAssets ( query ) ;
88
- return res ;
89
+ return res . stringifySafe ? JSON . parse ( res . stringifySafe ( ) ) : res ;
89
90
}
90
91
91
92
/**
92
93
* Gets an array of content entries.
93
94
* @param {Object } query Optional. Query for filtering / sorting of entries.
94
95
* @return {Promise }
95
96
*/
96
- queryEntries ( query ) {
97
- return this . client . getEntries ( query ) ;
97
+ async queryEntries ( query ) {
98
+ const res = await this . client . getEntries ( query ) ;
99
+ return res . stringifySafe ? JSON . parse ( res . stringifySafe ( ) ) : res ;
98
100
}
99
101
}
100
102
Original file line number Diff line number Diff line change 41
41
border-radius : 9px ;
42
42
margin-left : 9px ;
43
43
padding : 0 7px ;
44
+ padding-top : 2px ;
44
45
}
45
46
46
47
& .selected {
You can’t perform that action at this time.
0 commit comments