- Progress

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-02-05 16:00:52 -05:00
parent 99010f6e7d
commit ef0e55d316
3 changed files with 10 additions and 1 deletions

View File

@@ -3,6 +3,8 @@ import React, { useEffect, useState } from "react";
import { fetchFilterData } from "../../utils/RenderTemplate";
import { DeleteFilled } from "@ant-design/icons";
import { useTranslation } from "react-i18next";
import jsonic from 'jsonic';
export default function Test({ form }) {
return (
<Form.Item style={{ margin: 0, padding: 0 }} dependencies={["key"]}>
@@ -22,7 +24,7 @@ function RenderFilters({ templateId }) {
const fetch = async () => {
const data = await fetchFilterData({ name: templateId });
console.log("🚀 ~ fetch ~ data:", data);
setState(JSON.parse(data));
setState(jsonic(data));
};
console.log("🚀 ~ useEffect ~ templateId:", templateId);