Merge branch 'dev' of github.com:LDataCentric/reactFlow into dev
This commit is contained in:
commit
35759c7248
7 changed files with 31 additions and 23 deletions
|
|
@ -8,7 +8,7 @@ import {
|
|||
} from "../../utils";
|
||||
import ParameterComponent from "./components/parameterComponent";
|
||||
import { typesContext } from "../../contexts/typesContext";
|
||||
import { useContext, useEffect } from "react";
|
||||
import { useContext } from "react";
|
||||
|
||||
export default function GenericNode({ data }) {
|
||||
const {types} = useContext(typesContext);
|
||||
|
|
@ -49,6 +49,7 @@ export default function GenericNode({ data }) {
|
|||
|
||||
data={data}
|
||||
color={
|
||||
nodeColors[types[data.node.template[t].type]] ??
|
||||
nodeColors[types[data.node.template[t].type]] ??
|
||||
"black"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue