feat(ui): prevent connections to direct-only inputs

This commit is contained in:
psychedelicious
2024-05-17 20:08:37 +10:00
parent ad8778df6c
commit 575ecb4028
3 changed files with 25 additions and 12 deletions

View File

@ -45,6 +45,10 @@ export const useIsValidConnection = () => {
return false;
}
if (targetFieldTemplate.input === 'direct') {
return false;
}
if (!shouldValidateGraph) {
// manual override!
return true;