mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-12 23:37:00 +08:00
fix(core-app): CB-1149 code style
This commit is contained in:
@@ -91,7 +91,9 @@ export const InlineEditor = observer<InlineEditorProps, HTMLInputElement | null>
|
||||
const handleKeyDown = useCallback((event: React.KeyboardEvent<HTMLInputElement>) => {
|
||||
switch (event.key) {
|
||||
case 'Enter':
|
||||
!props.disableSave && props.onSave();
|
||||
if (!props.disableSave) {
|
||||
props.onSave();
|
||||
}
|
||||
break;
|
||||
case 'Escape':
|
||||
props.onReject?.();
|
||||
|
||||
Reference in New Issue
Block a user