فهرست منبع

use apiDelete

Yuki Takei 6 سال پیش
والد
کامیت
ebf891c356

+ 1 - 1
src/client/js/components/Admin/Export/ExportPage.jsx

@@ -49,7 +49,7 @@ class ExportPage extends React.Component {
 
 
   async onZipFileStatRemove(fileName) {
   async onZipFileStatRemove(fileName) {
     try {
     try {
-      await this.props.appContainer.apiRequest('delete', `/v3/export/${fileName}`, {});
+      await this.props.appContainer.apiDelete(`/v3/export/${fileName}`, {});
 
 
       this.setState((prevState) => {
       this.setState((prevState) => {
         return {
         return {

+ 1 - 1
src/client/js/components/Admin/Import/GrowiZipImportSection.jsx

@@ -36,7 +36,7 @@ class GrowiZipImportSection extends React.Component {
   async discardData() {
   async discardData() {
     try {
     try {
       const { fileName } = this.state;
       const { fileName } = this.state;
-      await this.props.appContainer.apiRequest('delete', `/v3/import/${this.state.fileName}`, {});
+      await this.props.appContainer.apiDelete(`/v3/import/${this.state.fileName}`, {});
       this.resetState();
       this.resetState();
 
 
       // TODO: toastSuccess, toastError
       // TODO: toastSuccess, toastError