Skip to content

Commit

Permalink
Merge branch 'main' into add-hybrid-search
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jul 2, 2024
2 parents 28f7c67 + c1947a0 commit 67ab84e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const useHandleOnNewValue = (
...newNode.data,
};

if (dbValue) {
if (dbValue !== undefined) {
newNode.data.node.template[name].load_from_db = dbValue;
}

Expand Down
2 changes: 0 additions & 2 deletions src/frontend/src/modals/apiModal/utils/tabs-array.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ export function createTabsArray(
includeWebhookCurl = false,
includeTweaks = false,
) {
// console.log(includeTweaks)
console.log(includeWebhookCurl);
const tabs = [
{
name: "Run cURL",
Expand Down
8 changes: 0 additions & 8 deletions src/frontend/src/utils/reactflowUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export function checkChatInput(nodes: Node[]) {
}

export function cleanEdges(nodes: NodeType[], edges: Edge[]) {
console.log("cleanEdges", nodes, edges);
let newEdges = cloneDeep(edges);
edges.forEach((edge) => {
// check if the source and target node still exists
Expand Down Expand Up @@ -93,8 +92,6 @@ export function cleanEdges(nodes: NodeType[], edges: Edge[]) {
output_types: outputTypes,
dataType: sourceNode.data.type,
};
console.log("id", id);
console.log("parsedSourceHandle", parsedSourceHandle);
if (scapedJSONStringfy(id) !== sourceHandle) {
newEdges = newEdges.filter((e) => e.id !== edge.id);
}
Expand Down Expand Up @@ -387,7 +384,6 @@ export function updateEdgesHandleIds({
edges,
nodes,
}: updateEdgesHandleIdsType): Edge[] {
console.log("updateEdgesHandleIds");
let newEdges = cloneDeep(edges);
newEdges.forEach((edge) => {
const sourceNodeId = edge.source;
Expand Down Expand Up @@ -766,9 +762,7 @@ export function reconnectEdges(groupNode: NodeType, excludedEdges: Edge[]) {
}
if (nodes.some((node) => node.id === edge.target)) {
const targetNode = nodes.find((node) => node.id === edge.target)!;
console.log("targetNode", targetNode);
const targetHandle: targetHandleType = scapeJSONParse(edge.targetHandle!);
console.log("targetHandle", targetHandle);
const proxy = { id: targetNode.id, field: targetHandle.fieldName };
let newTargetHandle: targetHandleType = cloneDeep(targetHandle);
newTargetHandle.id = groupNode.id;
Expand Down Expand Up @@ -1039,8 +1033,6 @@ function generateNodeOutputs(flow: FlowType) {
const nodeOutputs = node.data.node.outputs;
nodeOutputs.forEach((output) => {
//filter outputs that are not connected
console.log(output);
console.log(edges);
if (
!edges.some(
(edge) =>
Expand Down

0 comments on commit 67ab84e

Please sign in to comment.