Skip to content

Commit

Permalink
Update drawer to align with new CALMArchitecture type
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviajanejohns committed Jan 10, 2025
1 parent ab05aaa commit 646a688
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions calm-visualizer/src/components/drawer/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function isConnects(relationship: CALMRelationship): relationship is CALMConnect
return 'connects' in relationship['relationship-type'];
}

const getComposedOfRelationships = (calmInstance: CALMInstantiation) => {
const getComposedOfRelationships = (calmInstance: CALMArchitecture) => {
const composedOfRelationships: {
[idx: string]: {
type: 'parent' | 'child';
Expand All @@ -56,7 +56,7 @@ const getComposedOfRelationships = (calmInstance: CALMInstantiation) => {

return composedOfRelationships;
};
const getDeployedInRelationships = (calmInstance: CALMInstantiation) => {
const getDeployedInRelationships = (calmInstance: CALMArchitecture) => {
const deployedInRelationships: {
[idx: string]: {
type: 'parent' | 'child';
Expand Down Expand Up @@ -139,7 +139,7 @@ function Drawer({ calmInstance, title, isConDescActive, isNodeDescActive }: Draw
if (isInteracts(relationship)) {
return {
data: {
id: relationship['unique-id'],
id: relationship['uniqueId'],
label: relationship.description || '',
source: relationship['relationship-type'].interacts.actor,
target: relationship['relationship-type'].interacts.nodes[0],
Expand All @@ -151,7 +151,7 @@ function Drawer({ calmInstance, title, isConDescActive, isNodeDescActive }: Draw
const target = relationship['relationship-type'].connects.destination.node;
return {
data: {
id: relationship['unique-id'],
id: relationship['uniqueId'],
label: relationship.description || '',
source,
target,
Expand Down

0 comments on commit 646a688

Please sign in to comment.