From 153e06ab0f955d56e76c0d116cba9c736eb7c4f6 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Fri, 6 Sep 2024 17:12:12 +0530 Subject: [PATCH] fix: ts ci errors (#767) --- ui/src/components/CustomField.tsx | 1 + ui/src/containers/organisations.list/serviceusers/columns.tsx | 3 +-- ui/src/containers/products.create/features-fields.tsx | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/src/components/CustomField.tsx b/ui/src/components/CustomField.tsx index db264c67b..1722d1d2c 100644 --- a/ui/src/components/CustomField.tsx +++ b/ui/src/components/CustomField.tsx @@ -21,6 +21,7 @@ type CustomFieldNameProps = { variant?: "textarea" | "input" | "select" | "multiselect" | "switch"; style?: CSSProperties; options?: Array<{ label: string; value: any }>; + placeholder?: string; }; export const CustomFieldName = ({ diff --git a/ui/src/containers/organisations.list/serviceusers/columns.tsx b/ui/src/containers/organisations.list/serviceusers/columns.tsx index cf145aadb..de9bed4cf 100644 --- a/ui/src/containers/organisations.list/serviceusers/columns.tsx +++ b/ui/src/containers/organisations.list/serviceusers/columns.tsx @@ -34,7 +34,7 @@ export const getColumns: ( }, { header: "Platform User", - accessorKey: "", + accessorKey: "id", cell: ({ row }) => platformUsersIdSet.has(row?.original?.id) ? : null, }, @@ -50,7 +50,6 @@ export const getColumns: ( day: "numeric", year: "numeric", }), - footer: (props) => props.column.id, }, ]; diff --git a/ui/src/containers/products.create/features-fields.tsx b/ui/src/containers/products.create/features-fields.tsx index 90e67744c..9f46314c6 100644 --- a/ui/src/containers/products.create/features-fields.tsx +++ b/ui/src/containers/products.create/features-fields.tsx @@ -66,6 +66,7 @@ export const FeatureFields = ({ isMulti value={methods.getValues("features")} placeholder="select multiple features" + data-test-id="multiple-features-select" onChange={(data: any) => field.onChange( data.map((d: any) => ({ @@ -75,7 +76,7 @@ export const FeatureFields = ({ })) ) } - options={features} + options={features as any} /> )} control={methods.control}