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