-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Android - Distance - Waypoint does not change position correctly by dragging. #41378
Changes from 1 commit
7183083
15d52e2
e1c6d5f
bbe32c4
e76180b
111476d
8124981
800c12e
56f13d8
a74c13d
14f864f
257d956
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,6 +119,7 @@ function IOURequestStepWaypoint({ | |
name: values.name ?? '', | ||
lat: values.lat ?? 0, | ||
lng: values.lng ?? 0, | ||
keyForList: `${new Date().getTime()}_${Math.random().toString(36).substring(2, 15)}`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why only when offline 🤔 Also can we do something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ignore my previous comment, I thought the backend won't save the
I forgot to add to |
||
}; | ||
saveWaypoint(waypoint); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ type RecentWaypoint = { | |
|
||
/** The longitude of the waypoint */ | ||
lng?: number; | ||
|
||
/** The longitude of the waypoint */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wrong comment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated. |
||
keyForList?: string; | ||
}; | ||
|
||
export default RecentWaypoint; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,9 @@ type Waypoint = { | |
|
||
/** Address street line 2 */ | ||
street2?: string; | ||
|
||
/** The longitude of the waypoint */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wrong comment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated. |
||
keyForList?: string; | ||
}; | ||
|
||
type WaypointCollection = Record<string, RecentWaypoint | Waypoint>; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't the keyForList be there always if added in waypoint page, why this check ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the backend won't save the
keyForList
property but thats not the case. This part is not updated.