mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-01 06:33:32 +00:00
Mirror editId logic from shareId
This commit is contained in:
@@ -56,10 +56,7 @@ const SharePage = (props)=>{
|
||||
const renderEditLink = ()=>{
|
||||
if(!brew.editId) return null;
|
||||
|
||||
let editLink = brew.editId;
|
||||
if(brew.googleId && !brew.stubbed) {
|
||||
editLink = brew.googleId + editLink;
|
||||
}
|
||||
const editLink = brew.googleId && ! brew.stubbed ? brew.googleId + brew.editId : brew.editId;
|
||||
|
||||
return (
|
||||
<Nav.item color='orange' icon='fas fa-pencil-alt' href={`/edit/${editLink}`}>
|
||||
|
||||
Reference in New Issue
Block a user