Skip to content

Commit fcc60e1

Browse files
authored
Fit DELETE response with React Admin API #24
2 parents 2b256d1 + c617534 commit fcc60e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ export default (apiUrl, httpClient = fetchJson) => {
119119
};
120120
case CREATE:
121121
return { data: { ...params.data, id: json.id } };
122+
case DELETE:
123+
return { data: { id: params.id } };
122124
default:
123125
return { data: json };
124126
}

0 commit comments

Comments
 (0)