Skip to content

Commit

Permalink
chore: fix storyID parameter on roStoryMove
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanPabloLoCoco committed Jan 30, 2024
1 parent a87681f commit 4c2c7c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/connector/src/MosDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,18 @@ export class MosDevice implements IMOSDevice {
},
}
} else if (data.roStoryMove) {
const storyIDs: string[] = Array.isArray(data.roStoryMove.storyID)
? (data.roStoryMove.storyID as string[])
: [data.roStoryMove.storyID as string]

data.roElementAction = {
roID: data.roStoryMove.roID,
operation: 'MOVE',
element_target: {
storyID: data.roStoryMove.storyID[1],
storyID: storyIDs[1],
},
element_source: {
storyID: data.roStoryMove.storyID[0],
storyID: storyIDs[0],
},
}
} else if (data.roStorySwap) {
Expand Down

0 comments on commit 4c2c7c2

Please sign in to comment.