Skip to content

Commit

Permalink
fixes (#6801) Preview Recipe JSON doesn't scroll to recipe json (#8616)
Browse files Browse the repository at this point in the history
### Because
Page not scrolling to the recipe json part when clicked

### This commit
- Removed the Entire webpage url and mentioned only the id

---------

Co-authored-by: Yashika Khurana <[email protected]>
  • Loading branch information
cherish2003 and yashikakhurana authored Apr 1, 2023
1 parent 92ab5d5 commit b4824f9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { ReactComponent as Info } from "src/images/info.svg";
import { ReactComponent as SlackIcon } from "src/images/slack.svg";
import {
ARCHIVE_DISABLED,
BASE_PATH,
CHANGELOG_MESSAGES,
EXTERNAL_URLS,
} from "src/lib/constants";
Expand Down Expand Up @@ -190,7 +189,7 @@ export const SidebarActions = ({

{recipeJson && (
<Link
to={`${BASE_PATH}/${slug}#recipe-json`}
to={`#recipe-json`}
onClick={() => scrollIntoView}
className="mx-1 my-2 nav-item d-block text-dark w-100 font-weight-normal"
data-testid="button-recipe-json"
Expand Down

0 comments on commit b4824f9

Please sign in to comment.