style: improve readability

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-05 00:01:06 -03:00
commit 10bbb8e901

View file

@ -43,8 +43,9 @@ export default function FormModal({
const [chatValue, setChatValue] = useState(() => {
try {
const { formKeysData } = tabsState[flow.id];
if (!formKeysData) throw new Error("formKeysData is undefined");
if (!formKeysData) {
throw new Error("formKeysData is undefined");
}
const inputKeys = formKeysData.input_keys;
const handleKeys = formKeysData.handle_keys;