Skip to content

Commit

Permalink
fix: add created_at to edit events
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed May 4, 2024
1 parent aad296d commit 91f542d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/EditOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const EditOverlay = ({
original_center: e.center,
new_center: e.center,
in_progress: true,
created_at: Date.now(),
})

setIsMovingComponent(true)
Expand Down
1 change: 1 addition & 0 deletions src/lib/edit-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export type EditComponentLocationEvent = {
original_center: { x: number; y: number }
new_center: { x: number; y: number }
in_progress?: boolean
created_at: number
}

export type EditEvent = EditComponentLocationEvent

0 comments on commit 91f542d

Please sign in to comment.