fix(core-app): CB-1149 code style

This commit is contained in:
Naumov Alexey
2021-10-04 13:03:37 +03:00
parent 50dfb28dcf
commit cda2db9b81
@@ -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?.();