From 16d06c740d8dd56ed9359752a3bbc6a948d4d733 Mon Sep 17 00:00:00 2001 From: suryac Date: Wed, 8 Jul 2026 13:24:52 +0530 Subject: [PATCH] fix:type errors --- src/api/types.ts | 2 +- src/components/forms/DynamicForm.tsx | 4 ++-- src/screens/ConsoleLayout.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/types.ts b/src/api/types.ts index 3628bf7..b4f8b4f 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -60,7 +60,7 @@ export interface RecordViewParams { // is the designer's layout and decides which fields are user-facing. export interface FormScreenFieldProps { - options?: Array<{ label: string; value: string }>; + options?: Array<{ label: string; value: string; _raw?: Record }>; /** Dataset-backed select/multiselect: options come live from * /dataset-options (filter_options-aware), not the static `options` above. * `display_keys` are joined for the label; `value_key` is the stored value. */ diff --git a/src/components/forms/DynamicForm.tsx b/src/components/forms/DynamicForm.tsx index 9c847e2..1214bcf 100644 --- a/src/components/forms/DynamicForm.tsx +++ b/src/components/forms/DynamicForm.tsx @@ -1,6 +1,6 @@ import { useState, useEffect } from 'react'; import type { ZinoClient } from '../../api/client'; -import type { FormScreenResponse, FormScreenField } from '../../api/types'; +import type { FormScreenResponse } from '../../api/types'; import { Button } from '../buttons/Button'; import { Spinner } from '../reusable/Spinner'; import { @@ -213,7 +213,7 @@ export function DynamicForm({ client, activityId: initialActivityId, instanceId: required={f.mandatory} value={(val as string | number) ?? ''} client={client} - config={f.properties?.wf_lookup_config} + config={f.properties?.lookup_config} activityId={currentActivityId} fieldId={f.id} formData={values} diff --git a/src/screens/ConsoleLayout.tsx b/src/screens/ConsoleLayout.tsx index 33980f1..ca2502e 100644 --- a/src/screens/ConsoleLayout.tsx +++ b/src/screens/ConsoleLayout.tsx @@ -25,7 +25,7 @@ export function ConsoleLayout() { if (!authed) return ; return ( -
+
Krishna Sales