Skip to content

Commit

Permalink
Minor cleanup of old stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ianconsolata committed Nov 1, 2021
1 parent e7e8cd8 commit d88f62d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/Cards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export default function Cards({ }) {

return (
<>
{concepts ? (
concepts.length > 0 ? (
{garden ? (
garden.length > 0 ? (
<CardsFromGarden
webId={webId}
garden={garden}
Expand Down
2 changes: 1 addition & 1 deletion hooks/concepts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function useWorkspaceThings(webId, storage, workspaceSlug) {
export function useConceptThings(webId, storage, workspaceSlug) {
const { things, ...rest } = useWorkspaceThings(webId, storage, workspaceSlug);
return {
concepts: things.filter(hasNote),
concepts: things && things.filter(hasNote),
...rest,
};
}
Expand Down
1 change: 0 additions & 1 deletion model/flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ import { collapseTextChangeRangesAcrossMultipleVersions } from "typescript"
const VercelEnv = process.env.NEXT_PUBLIC_VERCEL_ENV || '';

export function isPreviewEnv() {
console.log(VercelEnv);
return VercelEnv !== 'production';
}

0 comments on commit d88f62d

Please sign in to comment.