From cb776dfcba766d4f1da44403bc0eb4b225e435f3 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Tue, 25 Jun 2024 18:43:59 -0300 Subject: [PATCH] code format --- src/frontend/src/modals/flowSettingsModal/index.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/frontend/src/modals/flowSettingsModal/index.tsx b/src/frontend/src/modals/flowSettingsModal/index.tsx index bb3e473b8..e5750c3dd 100644 --- a/src/frontend/src/modals/flowSettingsModal/index.tsx +++ b/src/frontend/src/modals/flowSettingsModal/index.tsx @@ -23,16 +23,15 @@ export default function FlowSettingsModal({ const [name, setName] = useState(currentFlow!.name); const [description, setDescription] = useState(currentFlow!.description); - const [endpoint_name, setEndpointName] = useState( - currentFlow!.endpoint_name - ); + const [endpoint_name, setEndpointName] = useState(currentFlow!.endpoint_name); const [isSaving, setIsSaving] = useState(false); const [disableSave, setDisableSave] = useState(true); function handleClick(): void { setIsSaving(true); currentFlow!.name = name; currentFlow!.description = description; - currentFlow!.endpoint_name = (endpoint_name && endpoint_name.length > 0) ? endpoint_name : undefined; + currentFlow!.endpoint_name = + endpoint_name && endpoint_name.length > 0 ? endpoint_name : undefined; saveFlow(currentFlow!) ?.then(() => { setOpen(false); @@ -64,7 +63,7 @@ export default function FlowSettingsModal({ (!nameLists.includes(name) && currentFlow?.name !== name) || currentFlow?.description !== description || ((currentFlow?.endpoint_name ?? "" !== endpoint_name) && - isEndpointNameValid(endpoint_name??"", 50)) + isEndpointNameValid(endpoint_name ?? "", 50)) ) { setDisableSave(false); } else {