Hylozoic / hylo-evo

Hylo UI
Apache License 2.0
36 stars 10 forks source link

Fix for dup Post to get attachments of fromPost #1614

Closed KevinTriplett closed 5 months ago

KevinTriplett commented 6 months ago

Fixes #1611

This is one way -- another is changing line 49 only:

const editingPostId = getRouteParam('postId', state, props) || fromPostId

The fix I propose in this PR is more clear IMO about what's happening and keeps the two IDs separate.