Skip to content

Commit

Permalink
fixed form and resource delete message (AOT-Technologies#1754)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhaib-aot authored Nov 21, 2023
1 parent 16dd18d commit 53f633a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions forms-flow-web/src/components/Form/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import {
import FormTable from "./constants/FormTable";
import ClientTable from "./constants/ClientTable";
import { useMemo } from "react";
import _ from "lodash";
const List = React.memo((props) => {
const { t } = useTranslation();
const [showFormUploadModal, setShowFormUploadModal] = useState(false);
Expand Down Expand Up @@ -633,13 +634,13 @@ const mapDispatchToProps = (dispatch, ownProps) => {
if (err) {
toast.error(
<Translation>
{(t) => t("Form deletion unsuccessful")}
{(t) => t(`${_.capitalize(formProcessData?.formType)} deletion unsuccessful`)}
</Translation>
);
} else {
toast.success(
<Translation>
{(t) => t("Form deleted successfully")}
{(t) => t(`${_.capitalize(formProcessData?.formType)} deleted successfully`)}
</Translation>
);
const newFormCheckList = formCheckList.filter(
Expand Down

0 comments on commit 53f633a

Please sign in to comment.