fix: Remove removeGlobalVariableFromComponents call on flow export (#2832)

refactor: remove removeGlobalVariableFromComponents call on flow export

Co-authored-by: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com>
This commit is contained in:
anovazzi1 2024-07-22 13:12:10 -03:00 committed by GitHub
commit c880d9035c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,7 +21,6 @@ import {
downloadNode,
removeApiKeys,
removeFileNameFromComponents,
removeGlobalVariableFromComponents,
} from "../../utils/reactflowUtils";
import BaseModal from "../baseModal";
import ConfirmationModal from "../confirmationModal";
@ -95,7 +94,6 @@ export default function ShareModal({
const handleShareComponent = async (update = false) => {
//remove file names from flows before sharing
removeFileNameFromComponents(component);
removeGlobalVariableFromComponents(component);
const flow: FlowType = removeApiKeys({
id: component!.id,
data: component!.data,