- Progress check

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-02-07 16:21:57 -05:00
parent 880f301c77
commit 8983b4cda4
3 changed files with 195 additions and 38 deletions

View File

@@ -23,7 +23,7 @@ function RenderFilters({ templateId }) {
const fetch = async () => {
const data = await fetchFilterData({ name: templateId });
console.log("🚀 ~ fetch ~ data:", data);
setState(JSON.parse(data));
setState(data.data);
};
console.log("🚀 ~ useEffect ~ templateId:", templateId);
@@ -79,7 +79,20 @@ function RenderFilters({ templateId }) {
},
]}
>
<Select />
<Select
options={[
{ value: "_eq", label: "Equals" },
{ value: "_ne", label: "Not Equals" },
{ value: "_gt", label: "Greater Than" },
{ value: "_lt", label: "Less Than" },
{ value: "_gte", label: "Greater Than or Equal To" },
{ value: "_lte", label: "Less Than or Equal To" },
{ value: "_in", label: "In" },
{ value: "_nin", label: "Not In" },
{ value: "_contains", label: "Contains" },
{ value: "_ncontains", label: "Does Not Contain" },
]}
/>
</Form.Item>
</Col>
<Col span={6}>