Skip to content

Commit

Permalink
fix: Remove removeGlobalVariableFromComponents call on flow export (l…
Browse files Browse the repository at this point in the history
…angflow-ai#2832)

refactor: remove removeGlobalVariableFromComponents call on flow export

Co-authored-by: Cristhian Zanforlin Lousa <[email protected]>
(cherry picked from commit c880d90)
  • Loading branch information
anovazzi1 authored and nicoloboschi committed Jul 30, 2024
1 parent 9c427a0 commit 757c5af
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/frontend/src/modals/shareModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
downloadNode,
removeApiKeys,
removeFileNameFromComponents,
removeGlobalVariableFromComponents,
} from "../../utils/reactflowUtils";
import BaseModal from "../baseModal";
import ConfirmationModal from "../confirmationModal";
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 757c5af

Please sign in to comment.