Skip to content

Commit

Permalink
SchemaForm: give multiline attribute higher priority
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Nov 20, 2024
1 parent 945d5f7 commit 7240351
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webapps/console/components/ConfigObjectEditor/SchemaForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,14 @@ export const SchemaForm: React.FC<{
/>
);
}
if (f.multiline) {
return <TextEditor rows={4} {...editorProps} />;
}
if (f.airbyte_secret) {
return <PasswordEditor {...editorProps} />;
}
return <TextEditor rows={f.multiline ? 4 : 1} {...editorProps} />;

return <TextEditor {...editorProps} />;
case "boolean":
return <Switch {...editorProps} />;
case "array":
Expand Down

0 comments on commit 7240351

Please sign in to comment.