mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 10:06:43 +08:00
fix: fixed warning on console (#10745)
* remove console warnings * [autofix.ci] apply automated fixes --------- Co-authored-by: Olayinka Adelakun <olayinkaadelakun@mac.war.can.ibm.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -7,6 +7,12 @@ import {
|
||||
import useFlowStore from "@/stores/flowStore";
|
||||
import { scapeJSONParse } from "@/utils/reactflowUtils";
|
||||
|
||||
const UNRECOGNIZED_DOM_PROPS = [
|
||||
"targetPosition",
|
||||
"sourcePosition",
|
||||
"pathOptions",
|
||||
];
|
||||
|
||||
export function DefaultEdge({
|
||||
sourceHandleId,
|
||||
source,
|
||||
@ -63,6 +69,13 @@ export function DefaultEdge({
|
||||
|
||||
const { animated, selectable, deletable, selected, ...domSafeProps } = props;
|
||||
|
||||
//Remove unrecognized DOM props
|
||||
UNRECOGNIZED_DOM_PROPS.forEach((prop) => {
|
||||
if (prop in domSafeProps) {
|
||||
delete domSafeProps[prop];
|
||||
}
|
||||
});
|
||||
|
||||
return (
|
||||
<BaseEdge
|
||||
path={targetHandleObject.output_types ? edgePathLoop : edgePath}
|
||||
|
||||
@ -78,6 +78,7 @@ export const MemoizedSidebarTrigger = memo(() => {
|
||||
data-testid={`sidebar-trigger-${item.id}`}
|
||||
iconName={item.icon}
|
||||
iconClasses={item.id === "mcp" ? "h-8 w-8" : ""}
|
||||
key={item.id}
|
||||
tooltipText={item.tooltip}
|
||||
onClick={() => {
|
||||
setActiveSection(item.id);
|
||||
|
||||
@ -281,8 +281,6 @@ export function FlowSidebarComponent({ isLoading }: FlowSidebarComponentProps) {
|
||||
mcpCategoryData[mcp.display_name] = mcp;
|
||||
});
|
||||
|
||||
console.log("mcpCategoryData", mcpCategoryData);
|
||||
|
||||
return {
|
||||
...data,
|
||||
MCP: mcpCategoryData,
|
||||
|
||||
Reference in New Issue
Block a user