|
|
|
@ -282,13 +282,15 @@ export const stockApi = { |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
console.log("API レスポンスステータス:", response.status); |
|
|
|
|
console.log("API レスポンス本文:", await response.text()); |
|
|
|
|
// console.log("API レスポンス本文:", await response.text());
|
|
|
|
|
|
|
|
|
|
if (!response.ok) { |
|
|
|
|
throw new Error(STOCK_ERRORS.DELETE_FAILED); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return response.json() |
|
|
|
|
const response_json = response.json() |
|
|
|
|
console.log('Delete response:', response_json) |
|
|
|
|
return response_json |
|
|
|
|
|
|
|
|
|
// return {
|
|
|
|
|
// "result": true
|
|
|
|
|