|
@@ -1,6 +1,6 @@
|
|
|
import React, { Component } from "react";
|
|
import React, { Component } from "react";
|
|
|
import ContentWrapper from "@/components/Layout/ContentWrapper";
|
|
import ContentWrapper from "@/components/Layout/ContentWrapper";
|
|
|
-import { getOneSanksi } from "@/actions/sanksi";
|
|
|
|
|
|
|
+import { getOneSanksi, updatePT } from "@/actions/sanksi";
|
|
|
import Header from "@/components/Main/Header";
|
|
import Header from "@/components/Main/Header";
|
|
|
import DetailPT from "@/components/Main/DetailPT";
|
|
import DetailPT from "@/components/Main/DetailPT";
|
|
|
import DetailSanksi from "@/components/Main/DetailSanksi";
|
|
import DetailSanksi from "@/components/Main/DetailSanksi";
|
|
@@ -98,10 +98,8 @@ class JawabanKeberatan extends Component {
|
|
|
try {
|
|
try {
|
|
|
const { token, query } = this.props;
|
|
const { token, query } = this.props;
|
|
|
await updatePT(token, query.id, { is_pengajuan: false })
|
|
await updatePT(token, query.id, { is_pengajuan: false })
|
|
|
-
|
|
|
|
|
toast.update(toastid, { render: "All is good", type: "success", isLoading: false, autoClose: true, closeButton: true });
|
|
toast.update(toastid, { render: "All is good", type: "success", isLoading: false, autoClose: true, closeButton: true });
|
|
|
Router.push("/pt/dokumen-perbaikan");
|
|
Router.push("/pt/dokumen-perbaikan");
|
|
|
-
|
|
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
toast.update(toastid, { render: "All is not good", type: "error", isLoading: false, autoClose: true, closeButton: true });
|
|
toast.update(toastid, { render: "All is not good", type: "error", isLoading: false, autoClose: true, closeButton: true });
|
|
|
}
|
|
}
|