fix: resolve ci failures

This commit is contained in:
Lucas Smith
2026-07-21 16:23:47 +10:00
parent 11970a3659
commit 4eceb03ac3
2 changed files with 8 additions and 11 deletions
@@ -146,14 +146,17 @@ export const DocumentSigningRadioField = ({ field, onSignField, onUnsignField }:
{isLoading && <DocumentSigningFieldsLoader />} {isLoading && <DocumentSigningFieldsLoader />}
{!field.inserted && ( {!field.inserted && (
<RadioGroup onValueChange={(value) => handleSelectItem(value)} className="z-10 my-0.5 gap-y-1"> <RadioGroup
value={selectedOption}
onValueChange={(value) => handleSelectItem(value)}
className="z-10 my-0.5 gap-y-1"
>
{values?.map((item, index) => ( {values?.map((item, index) => (
<div key={index} className="flex items-center"> <div key={index} className="flex items-center">
<RadioGroupItem <RadioGroupItem
className="h-3 w-3 shrink-0" className="h-3 w-3 shrink-0"
value={item.value} value={item.value}
id={`option-${field.id}-${item.id}`} id={`option-${field.id}-${item.id}`}
checked={item.checked}
disabled={isReadOnly} disabled={isReadOnly}
/> />
{!item.value.includes('empty-value-') && item.value && ( {!item.value.includes('empty-value-') && item.value && (
@@ -167,14 +170,13 @@ export const DocumentSigningRadioField = ({ field, onSignField, onUnsignField }:
)} )}
{field.inserted && ( {field.inserted && (
<RadioGroup className="my-0.5 gap-y-1"> <RadioGroup value={field.customText ?? ''} className="my-0.5 gap-y-1">
{values?.map((item, index) => ( {values?.map((item, index) => (
<div key={index} className="flex items-center"> <div key={index} className="flex items-center">
<RadioGroupItem <RadioGroupItem
className="h-3 w-3" className="h-3 w-3"
value={item.value} value={item.value}
id={`option-${field.id}-${item.id}`} id={`option-${field.id}-${item.id}`}
checked={item.value === field.customText}
disabled={isReadOnly} disabled={isReadOnly}
/> />
{!item.value.includes('empty-value-') && item.value && ( {!item.value.includes('empty-value-') && item.value && (
@@ -103,15 +103,10 @@ export const FieldContent = ({ field, documentMeta }: FieldIconProps) => {
) { ) {
return ( return (
<div className="flex flex-col gap-y-2 py-0.5"> <div className="flex flex-col gap-y-2 py-0.5">
<RadioGroup className="gap-y-1"> <RadioGroup value={field.customText ?? ''} className="gap-y-1">
{field.fieldMeta.values.map((item, index) => ( {field.fieldMeta.values.map((item, index) => (
<div key={index} className="flex items-center"> <div key={index} className="flex items-center">
<RadioGroupItem <RadioGroupItem className="pointer-events-none h-3 w-3" value={item.value} id={`option-${index}`} />
className="pointer-events-none h-3 w-3"
value={item.value}
id={`option-${index}`}
checked={item.value === field.customText}
/>
{item.value && ( {item.value && (
<Label htmlFor={`option-${index}`} className="ml-1.5 font-normal text-foreground text-xs"> <Label htmlFor={`option-${index}`} className="ml-1.5 font-normal text-foreground text-xs">
{item.value} {item.value}