Skip to content

Commit

Permalink
closes #557, error when clicking on hub from search result
Browse files Browse the repository at this point in the history
  • Loading branch information
joshslee committed Sep 15, 2020
1 parent 5bc3099 commit 7845221
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/HubSearchResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Link from "next/link";
// Config
import colors from "../config/themes/colors";
import icons from "~/config/themes/icons";
import { formatPaperSlug } from "~/config/utils";

const HubSearchResult = ({ result, index, clearSearch }) => {
let { id, meta, name, paper_count } = result;
Expand All @@ -28,10 +29,7 @@ const HubSearchResult = ({ result, index, clearSearch }) => {
};

const formatSlug = (name) => {
return name
.split(" ")
.join("-")
.toLowerCase();
return formatPaperSlug(name);
};

const renderHeader = () => {
Expand Down

0 comments on commit 7845221

Please sign in to comment.