Quellcode durchsuchen

Fixed 2120

bugfix/2120
jovan.cirkovic vor 3 Jahren
Ursprung
Commit
0579d0c291
1 geänderte Dateien mit 8 neuen und 4 gelöschten Zeilen
  1. 8
    4
      src/store/saga/adminSaga.js

+ 8
- 4
src/store/saga/adminSaga.js Datei anzeigen

@@ -25,7 +25,11 @@ import {
attemptDeleteLocation,
attemptEditLocation,
} from "../../request/locationsRequest";
import { attemptBlockProfileAsAdmin, attemptDeleteProfileAsAdmin, attemptUnblockProfileAsAdmin } from "../../request/profileRequest";
import {
attemptBlockProfileAsAdmin,
attemptDeleteProfileAsAdmin,
attemptUnblockProfileAsAdmin,
} from "../../request/profileRequest";
// import { attemptAddNewCategory } from "../../request/categoriesRequest";
import { ADMIN_FETCH } from "../actions/admin/adminActionConstants";
import {
@@ -51,8 +55,8 @@ function* addCategory(payload) {
try {
let dataToSend = new FormData();
dataToSend.append("name", payload.values.title);
dataToSend.append("file", payload.values.image);
dataToSend.append("subcategories", JSON.stringify([]));
// dataToSend.append("file", payload.values.image);
// dataToSend.append("subcategories", JSON.stringify([]));
yield call(attemptAddNewCategory, {
body: dataToSend,
});
@@ -213,7 +217,7 @@ function* fetchAdminMethod({ payload }) {
} else if (payload.type === USERS_BLOCK_TYPE) {
yield call(blockUser, { id: payload.id });
} else if (payload.type === USERS_UNBLOCK_TYPE) {
yield call(unblockUser, {id: payload.id})
yield call(unblockUser, { id: payload.id });
}
if (payload.handleApiResponseSuccess)
yield call(payload.handleApiResponseSuccess);

Laden…
Abbrechen
Speichern