Skip to content

Commit

Permalink
front: editor: fix wrong id when updating a signal
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahBellaha committed Oct 30, 2023
1 parent 356c251 commit 4c728f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/src/applications/editor/data/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export function entityToCreateOperation(entity: EditorEntity): RailjsonObject {
export function entityToUpdateOperation(entity: EditorEntity, prev: EditorEntity): UpdateOperation {
return {
operation_type: 'UPDATE',
obj_id: prev.properties.id,
obj_id: entity.properties.id,
obj_type: prev.objType,
railjson_patch: compare(
prev.properties || {},
Expand Down

0 comments on commit 4c728f6

Please sign in to comment.