We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c8e074 commit 75e3756Copy full SHA for 75e3756
src/api/gists.js
@@ -18,12 +18,12 @@ export async function create(filename, content) {
18
}
19
20
export async function patch(gistId, filename, content) {
21
- const { deleted } = await axios.patch(`${baseUrl}/gists/${gistId}`, {
+ const { data } = await axios.patch(`${baseUrl}/gists/${gistId}`, {
22
filename,
23
content,
24
});
25
26
- return deleted;
+ return data.deleted;
27
28
29
export async function del(gistId) {
0 commit comments