fix(ui): fix type issues

This commit is contained in:
psychedelicious 2024-02-15 20:53:41 +11:00
parent ed43472582
commit 2bd1ab2f1c
2 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ type Props = {
const WorkflowField = ({ nodeId, fieldName }: Props) => {
const label = useFieldLabel(nodeId, fieldName);
const fieldTemplateTitle = useFieldTemplateTitle(nodeId, fieldName, 'input');
const fieldTemplateTitle = useFieldTemplateTitle(nodeId, fieldName, 'inputs');
const { isValueChanged, onReset } = useFieldOriginalValue(nodeId, fieldName);
return (
@ -36,7 +36,7 @@ const WorkflowField = ({ nodeId, fieldName }: Props) => {
/>
)}
<Tooltip
label={<FieldTooltipContent nodeId={nodeId} fieldName={fieldName} kind="input" />}
label={<FieldTooltipContent nodeId={nodeId} fieldName={fieldName} kind="inputs" />}
openDelay={HANDLE_TOOLTIP_OPEN_DELAY}
placement="top"
>

View File

@ -284,13 +284,13 @@ describe('refObjectToSchemaName', async () => {
});
describe.concurrent('parseFieldType', async () => {
it.each(primitiveTypes)('parses primitive types ($name)', ({ schema, expected }) => {
it.each(primitiveTypes)('parses primitive types ($name)', ({ schema, expected }: ParseFieldTypeTestCase) => {
expect(parseFieldType(schema)).toEqual(expected);
});
it.each(complexTypes)('parses complex types ($name)', ({ schema, expected }) => {
it.each(complexTypes)('parses complex types ($name)', ({ schema, expected }: ParseFieldTypeTestCase) => {
expect(parseFieldType(schema)).toEqual(expected);
});
it.each(specialCases)('parses special case types ($name)', ({ schema, expected }) => {
it.each(specialCases)('parses special case types ($name)', ({ schema, expected }: ParseFieldTypeTestCase) => {
expect(parseFieldType(schema)).toEqual(expected);
});