Skip to content

Commit c13beb6

Browse files
committed
Improvement5
1 parent c7dbd42 commit c13beb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/interactive-builder/modals/question/question-form/question-types/inputs/person-attribute/person-attribute-type-question.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const PersonAttributeTypeQuestion: React.FC = () => {
1212
const { personAttributeTypes, personAttributeTypeLookupError, isLoadingPersonAttributeTypes } =
1313
usePersonAttributeTypes();
1414

15-
const attributeTypeUuid = (formField.questionOptions as any)?.attributeType;
15+
const attributeTypeUuid = (formField.questionOptions as { attributeType?: string })?.attributeType;
1616
const [selectedPersonAttributeType, setSelectedPersonAttributeType] = useState<PersonAttributeType | null>(null);
1717

1818
// Sync selected person attribute type when personAttributeTypes loads or attributeTypeUuid changes
@@ -36,7 +36,7 @@ const PersonAttributeTypeQuestion: React.FC = () => {
3636
questionOptions: {
3737
...formField.questionOptions,
3838
attributeType: selectedItem?.uuid,
39-
} as any,
39+
} as typeof formField.questionOptions & { attributeType?: string },
4040
});
4141
};
4242

0 commit comments

Comments
 (0)