Fix defaultPut suffix parameter
This commit is contained in:
parent
e5e614fc4b
commit
0488058a02
@ -37,7 +37,7 @@ async function defaultDelete(type, id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function defaultPut(type, entry, id = undefined, suffix = undefined) {
|
async function defaultPut(type, entry, id = undefined, suffix = undefined) {
|
||||||
const resp = await fetch(`${BASE_PATH}/${type}/${id || entry.id}${suffix}`, {
|
const resp = await fetch(`${BASE_PATH}/${type}/${id || entry.id}${suffix || ''}`, {
|
||||||
headers: getHeaders(),
|
headers: getHeaders(),
|
||||||
body: JSON.stringify(entry),
|
body: JSON.stringify(entry),
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
|
Loading…
Reference in New Issue
Block a user