diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx
index 73ab9aeef..0a926719e 100644
--- a/src/frontend/src/CustomNodes/GenericNode/index.tsx
+++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx
@@ -16,7 +16,7 @@ import { validationStatusType } from "../../types/components";
import { NodeDataType } from "../../types/flow";
import { handleKeyDown, scapedJSONStringfy } from "../../utils/reactflowUtils";
import { nodeColors, nodeIconsLucide } from "../../utils/styleUtils";
-import { classNames, getFieldTitle } from "../../utils/utils";
+import { classNames, cn, getFieldTitle } from "../../utils/utils";
import ParameterComponent from "./components/parameterComponent";
export default function GenericNode({
@@ -361,36 +361,18 @@ export default function GenericNode({
- {data.node?.description !== "" &&
- showNode &&
- data.node?.flow &&
- inputDescription ? (
-
-
+ {setName ? (
+
+ ) : (
+
+ {name}
+
+ )}
>
);
diff --git a/src/frontend/src/modals/shareModal/index.tsx b/src/frontend/src/modals/shareModal/index.tsx
index abec824ac..74546c91f 100644
--- a/src/frontend/src/modals/shareModal/index.tsx
+++ b/src/frontend/src/modals/shareModal/index.tsx
@@ -120,11 +120,11 @@ export default function ShareModal({
is_component: is_component,
});
- await saveFlow(flow!, true);
-
function successShare() {
if (is_component) {
- addFlow(true, flow);
+ addFlow(true, flow, update);
+ } else {
+ saveFlow(flow!, true);
}
setSuccessData({
title: `${nameComponent} shared successfully`,
@@ -223,13 +223,9 @@ export default function ShareModal({
/>
- element.name)}
- description={description}
- setName={setName}
- setDescription={setDescription}
- />
+
+
+
void;
- setDescription: (description: string) => void;
+ setName?: (name: string) => void;
+ setDescription?: (description: string) => void;
invalidNameList?: string[];
};
diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts
index 6c8e8627a..100d0c936 100644
--- a/src/frontend/src/utils/reactflowUtils.ts
+++ b/src/frontend/src/utils/reactflowUtils.ts
@@ -761,7 +761,7 @@ export function generateNodeFromFlow(
display_name: "Group",
documentation: "",
base_classes: outputNode!.data.node!.base_classes,
- description: "double click to edit description",
+ description: "",
template: generateNodeTemplate(data),
flow: data,
},