diff --git a/src/frontend/src/modals/exportModal/index.tsx b/src/frontend/src/modals/exportModal/index.tsx index 199c74256..30567b4f1 100644 --- a/src/frontend/src/modals/exportModal/index.tsx +++ b/src/frontend/src/modals/exportModal/index.tsx @@ -34,7 +34,7 @@ export default function ExportModal() { }, 300); } } - const [checked, setChecked] = useState(true); + const [checked, setChecked] = useState(false); const [name, setName] = useState(flows.find((f) => f.id === tabId).name); const [description, setDescription] = useState( flows.find((f) => f.id === tabId).description diff --git a/src/frontend/src/utils.ts b/src/frontend/src/utils.ts index 569cf76e4..c09c64b2b 100644 --- a/src/frontend/src/utils.ts +++ b/src/frontend/src/utils.ts @@ -491,9 +491,10 @@ export function isValidConnection( export function removeApiKeys(flow: FlowType): FlowType { let cleanFLow = _.cloneDeep(flow); + console.log(cleanFLow); cleanFLow.data.nodes.forEach((node) => { for (const key in node.data.node.template) { - if (node.data.node.template[key].password!==undefined) { + if (node.data.node.template[key].password) { node.data.node.template[key].value = ""; } }