Skip to content

Commit

Permalink
fix: Send the correct component size data on websocket events
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Bustamante <[email protected]>
  • Loading branch information
vbustamante committed Oct 25, 2024
1 parent 3fe5222 commit 638d16a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions lib/sdf-server/src/service/diagram/set_component_position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,25 @@ pub async fn set_component_position(
};

component
.set_geometry(&ctx, new_geometry.x, new_geometry.y, width, height)
.set_geometry(
&ctx,
new_geometry.x,
new_geometry.y,
width.clone(),
height.clone(),
)
.await?;
components.push(component);

geometry_list.push((id, update.geometry))
geometry_list.push((
id,
RawGeometry {
x: update.geometry.x,
y: update.geometry.y,
width,
height,
},
))
}

WsEvent::set_component_position(
Expand Down

0 comments on commit 638d16a

Please sign in to comment.