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 dcab4f1 commit 2f3f3bcCopy full SHA for 2f3f3bc
src/data/services/lms/utils.js
@@ -42,7 +42,7 @@ export const get = (...args) => getAuthenticatedHttpClient().get(...args);
42
* @param {string} url - target url
43
* @param {object|string} body - post payload
44
*/
45
-export const post = (url, body) => getAuthenticatedHttpClient().post(url, stringify(body));
+export const post = (url, body = {}) => getAuthenticatedHttpClient().post(url, stringify(body));
46
47
export const client = getAuthenticatedHttpClient;
48
0 commit comments