cleanup: catches edge case, removes globe from home scene

This commit is contained in:
@wwwjim 2020-07-31 03:05:29 -07:00
parent 60feda9fbb
commit 820ff8026d
2 changed files with 5 additions and 2 deletions

View File

@ -27,6 +27,10 @@ export const getServerSideProps = async (context) => {
export default class SlatePage extends React.Component {
componentDidMount() {
if (!this.props.slate) {
return null;
}
System.dispatchCustomEvent({
name: "slate-global-create-carousel",
detail: {
@ -64,6 +68,7 @@ export default class SlatePage extends React.Component {
>
<div css={STYLES_ROOT}>
<System.H1>404</System.H1>
<br />
<System.P>
This slate is not found.
<br />

View File

@ -7,7 +7,6 @@ import * as Data from "~/common/data";
import { css } from "@emotion/react";
import GLRenderer from "~/components/three/GLRenderer";
import Section from "~/components/core/Section";
import ScenePage from "~/components/core/ScenePage";
@ -151,7 +150,6 @@ export default class SceneHome extends React.Component {
return (
<ScenePage>
<GLRenderer width={1200} height={480} />
<Section
title="Slates"
buttons={slateButtons}