Skip to content

Commit

Permalink
fix(dashboard): accommodate new
Browse files Browse the repository at this point in the history
  • Loading branch information
HazimAr committed Nov 26, 2024
1 parent d1e21d9 commit 7347844
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Edge: FC<Modal> = ({ data }) => {
<span className="rounded bg-green-300 p-1 text-xs">{mutation.operation}</span>
<NodeOutput nodeOutput={mutation.nodeOutput} />
<LiteralValue literalValue={mutation.literalValue} />
<RhsAssignment RhsAssignment={mutation.RhsAssignment} />
<RhsAssignment rhsAssignment={mutation.rhsAssignment} />
</div>
))}
</DialogContent>
Expand All @@ -41,12 +41,13 @@ const NodeOutput: FC<Pick<VariableMutation, 'nodeOutput'>> = ({ nodeOutput }) =>
)
}

const RhsAssignment: FC<Pick<VariableMutation, 'RhsAssignment'>> = ({ RhsAssignment }) => {
if (!RhsAssignment) return <></>
const RhsAssignment: FC<Pick<VariableMutation, 'rhsAssignment'>> = ({ rhsAssignment }) => {
console.log('rhsAssignment', rhsAssignment)
if (!rhsAssignment) return <></>
return (
<>
<span className="rounded bg-gray-200 p-1 text-xs">Source Variable</span>
<span className="rounded bg-gray-100 p-1 font-mono text-xs text-orange-500">{getVariable(RhsAssignment)}</span>
<span className="rounded bg-gray-200 p-1 text-xs">RHS Assignment</span>
<span className="rounded bg-gray-100 p-1 font-mono text-xs text-orange-500">{getVariable(rhsAssignment)}</span>
</>
)
}
Expand Down

0 comments on commit 7347844

Please sign in to comment.