Skip to content

Commit

Permalink
closes #608, clamp abstract on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
joshslee committed Sep 1, 2020
1 parent 05e2737 commit 8a6f126
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion components/Hubs/PaperEntryCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,6 @@ const styles = StyleSheet.create({
summary: {
minWidth: "100%",
maxWidth: "100%",
whiteSpace: "pre-wrap",
color: "#4e4c5f",
fontSize: 14,
paddingBottom: 8,
Expand Down
1 change: 0 additions & 1 deletion components/PaperPageCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,6 @@ class PaperPageCard extends React.Component {
});
}
} catch (e) {
console.log(e);
Sentry.captureException(e);
}

Expand Down
8 changes: 3 additions & 5 deletions pages/paper/[paperId]/[paperName]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,20 @@ import {
import { redirect, formatPaperSlug } from "~/config/utils";

const Paper = (props) => {
const router = useRouter();
if (props.error || props.paper.status === 404) {
return <Error statusCode={404} />;
}
const router = useRouter();
const dispatch = useDispatch();
const store = useStore();

console.log(props);
// TODO: why is this redirect path here?
if (props.redirectPath && typeof window !== "undefined") {
debugger;
router.push("/paper/[paperId]/[paperName]", props.redirectPath, {
shallow: true,
});
}

const dispatch = useDispatch();
const store = useStore();
const isModerator = store.getState().auth.user.moderator;
const [paper, setPaper] = useState(props.paper);
const [showAllSections, toggleShowAllSections] = useState(false);
Expand Down

0 comments on commit 8a6f126

Please sign in to comment.