Skip to content

Commit ef668e0

Browse files
committed
feat: fixed deselecting connect tiles and reselecting them
1 parent ad610f6 commit ef668e0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

frontend/src/components/pages/rp-connect/onboarding/connect-tiles.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,13 @@ export const ConnectTiles = memo(
369369
if (isChecked) {
370370
// Unselect if already selected
371371
field.onChange('');
372-
form.setValue('connectionType', '' as ConnectComponentType);
372+
form.setValue('connectionType', '' as ConnectComponentType, { shouldValidate: true });
373373
} else {
374374
// Select the component
375375
field.onChange(component.name);
376-
form.setValue('connectionType', component.type as ConnectComponentType);
376+
form.setValue('connectionType', component.type as ConnectComponentType, {
377+
shouldValidate: true,
378+
});
377379
onChange?.(component.name, component.type as ConnectComponentType);
378380
}
379381
}}

0 commit comments

Comments
 (0)