|
|
@@ -6,6 +6,8 @@ import { connect } from "react-redux";
|
|
|
import { toast } from "react-toastify";
|
|
|
import { Formik, Form, Field, ErrorMessage } from "formik";
|
|
|
import * as Yup from "yup";
|
|
|
+import { updatePT } from "@/actions/sanksi";
|
|
|
+
|
|
|
|
|
|
let Dropzone = null;
|
|
|
class DropzoneWrapper extends Component {
|
|
|
@@ -109,6 +111,7 @@ export class ModalPermohonan extends Component {
|
|
|
|
|
|
const toastid = toast.loading("Please wait...");
|
|
|
const added = await addBanding(token, id, formdata);
|
|
|
+ await updatePT(token, query.id, { is_pengajuan_banding: true })
|
|
|
|
|
|
if (!added) {
|
|
|
toast.update(toastid, { render: "All is not good", type: "error", isLoading: false, autoClose: true, closeButton: true });
|