Fix defaultPut suffix parameter
This commit is contained in:
parent
e5e614fc4b
commit
0488058a02
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ async function defaultDelete(type, id) {
|
|||
}
|
||||
|
||||
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(),
|
||||
body: JSON.stringify(entry),
|
||||
method: "PUT",
|
||||
|
|
Loading…
Reference in a new issue