mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:17:08 +00:00
Pass a clone of Response to API callback
This commit is contained in:
@@ -76,7 +76,7 @@ async function api ({state, getters, commit, dispatch}, [resource, init = {}, cb
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof cb === 'function') {
|
if (typeof cb === 'function') {
|
||||||
await cb(null, res);
|
await cb(null, res.clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
|
|||||||
Reference in New Issue
Block a user