-
Notifications
You must be signed in to change notification settings - Fork 24
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
PSP-7158 Allow moving the position of map markers (within the file) #4233
Conversation
✅ No secrets were detected in the code. |
2 similar comments
✅ No secrets were detected in the code. |
✅ No secrets were detected in the code. |
repositioningFeatureDataset: LocationFeatureDataset | null, | ||
index: number | null, |
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.
Can these be null if they are necessary for the state?
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.
good catch - will change
actions: [ | ||
assign({ | ||
repositioningFeatureDataset: () => null, | ||
repositioningPropertyIndex: () => null, |
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.
does selectingComponentId need to be set to null as well?
@@ -206,7 +219,7 @@ const MapLeafletView: React.FC<React.PropsWithChildren<MapLeafletViewProps>> = ( | |||
))} | |||
</LayerGroup> | |||
)} | |||
{mapMachine.showPopup && ( | |||
{mapMachine.showPopup && !mapMachine.isRepositioning && ( |
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.
this is kinda odd. The mapMachine should be the sole authority in deciding if the popup should be shown. Otherwise, we risk having the logic distributed. Would it be possible to have the state so both showPopup and isRepositioning can never happen together?
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.
Updated
5b7e596
to
f705f7e
Compare
✅ No secrets were detected in the code. |
✅ No secrets were detected in the code. |
✅ No secrets were detected in the code. |
video.mp4