fix:type errors

This commit is contained in:
suryac 2026-07-08 13:24:52 +05:30
parent 785885c383
commit 16d06c740d
3 changed files with 4 additions and 4 deletions

View File

@ -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<string, any> }>;
/** 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. */

View File

@ -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}

View File

@ -25,7 +25,7 @@ export function ConsoleLayout() {
if (!authed) return <Navigate to="/login" replace />;
return (
<div className="min-h-screen bg-app flex flex-col">
<div className="h-screen bg-app flex flex-col">
<header className="sticky top-0 z-10 shrink-0 flex items-center justify-between gap-3 px-6 h-[60px] bg-navy-grad border-b border-border-navy">
<div className="flex flex-col">
<span className="text-md font-extrabold text-on-navy tracking-[-0.01em] leading-none">Krishna Sales</span>