Skip to content

Commit

Permalink
#2110 Additional Text is appended to Node Tooltip heading in some nod…
Browse files Browse the repository at this point in the history
…es (#2111)

Signed-off-by: srikant <[email protected]>
  • Loading branch information
srikant-ch5 authored Aug 23, 2024
1 parent 032a1e2 commit f5f341d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class ReactNodesCarbonCanvas extends React.Component {
}

layoutHandler(node) {
if (node.op === "shape-node") {
if (node?.op && node.op.includes("shape-node")) {
const config = {
selectionPath: "M -4 -4 h 36 v 36 h -36 Z",
nodeExternalObject: ShapeNodeWrapper,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
"id": "178a4e3c-6cdf-4465-914d-b9d71c5ef6b8",
"type": "execution_node",
"op": "shape-node",
"op": "shape-node-square",
"app_data": {
"react_nodes_data": {
"shape": "square"
Expand Down Expand Up @@ -56,7 +56,7 @@
{
"id": "8a9fbf9d-88b0-4ccc-a0bb-55e2defcb973",
"type": "execution_node",
"op": "shape-node",
"op": "shape-node-circle",
"app_data": {
"react_nodes_data": {
"shape": "circle"
Expand Down Expand Up @@ -108,7 +108,7 @@
{
"id": "d904953e-ca2f-4c4d-b593-f71dbd99fe5d",
"type": "execution_node",
"op": "shape-node",
"op": "shape-node-rounded-square",
"app_data": {
"react_nodes_data": {
"shape": "rounded-square"
Expand Down Expand Up @@ -258,7 +258,7 @@
{
"id": "5d47eb47-bac4-4f47-a279-01d39133f118",
"type": "execution_node",
"op": "regular-card-node",
"op": "card-node-with-color",
"app_data": {
"react_nodes_data": {
"color": "#EAC348"
Expand Down Expand Up @@ -310,7 +310,7 @@
{
"id": "54cc0a7e-abf0-496e-992d-573a73ace37d",
"type": "execution_node",
"op": "card-node-regular",
"op": "card-node-regular-curved-corners",
"app_data": {
"react_nodes_data": {
"shape": "curved-corners"
Expand Down Expand Up @@ -362,7 +362,7 @@
{
"id": "3248f99f-30b9-441f-8c81-931122a0bfce",
"type": "execution_node",
"op": "shape-node",
"op": "shape-node-rounded-square",
"app_data": {
"react_nodes_data": {
"shape": "rounded-square"
Expand Down Expand Up @@ -492,7 +492,7 @@
{
"id": "b134fd69-1ea8-4f0e-8ead-3ada4914b654",
"type": "execution_node",
"op": "shape-node",
"op": "shape-node-circle",
"app_data": {
"react_nodes_data": {
"shape": "circle"
Expand Down Expand Up @@ -544,7 +544,7 @@
{
"id": "08384753-ad6e-4ee7-abab-e7ede93d3b50",
"type": "execution_node",
"op": "regular-card-node",
"op": "card-node-with-color",
"app_data": {
"react_nodes_data": {
"color": "#EAC348"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
{
"id": "",
"type": "execution_node",
"op": "regular-card-node",
"op": "card-node-with-color",
"outputs": [
{
"id": "outPort",
Expand Down Expand Up @@ -139,7 +139,7 @@
{
"id": "",
"type": "execution_node",
"op": "card-node-regular",
"op": "card-node-regular-curved-corners",
"outputs": [
{
"id": "outPort",
Expand Down Expand Up @@ -192,7 +192,7 @@
{
"id": "",
"type": "execution_node",
"op": "shape-node",
"op": "shape-node-square",
"inputs": [
{
"id": "inPort",
Expand Down Expand Up @@ -237,7 +237,7 @@
{
"id": "",
"type": "execution_node",
"op": "shape-node",
"op": "shape-node-circle",
"inputs": [
{
"id": "inPort",
Expand Down Expand Up @@ -282,7 +282,7 @@
{
"id": "",
"type": "execution_node",
"op": "shape-node",
"op": "shape-node-rounded-square",
"inputs": [
{
"id": "inPort",
Expand Down

0 comments on commit f5f341d

Please sign in to comment.