removes asterisk from wfjt form inventory field

This commit is contained in:
Alex Corey 2020-11-19 14:15:17 -05:00
parent b6a55e53d5
commit 60ccdfa4e6
2 changed files with 4 additions and 1 deletions

View File

@ -126,7 +126,6 @@ function WorkflowJobTemplateForm({
onChange={value => {
inventoryHelpers.setValue(value);
}}
required={!askInventoryOnLaunchField.value}
touched={inventoryMeta.touched}
error={inventoryMeta.error}
/>

View File

@ -264,4 +264,8 @@ describe('<WorkflowJobTemplateForm/>', () => {
expect(handleCancel).toBeCalled();
});
test('should not show inventory field as required', () => {
expect(wrapper.find('InventoryLookup').prop('required')).toBe(false);
});
});