Skip to content

Commit

Permalink
Merge pull request artsy#3248 from damassi/fix-edges-issue
Browse files Browse the repository at this point in the history
Make hide grids function a bit safer
  • Loading branch information
damassi committed Mar 9, 2020
2 parents eb975dd + dd8b203 commit d9747fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Apps/Artwork/Components/OtherWorks/index.tsx
Expand Up @@ -20,7 +20,7 @@ export interface OtherWorksContextProps {
* Check to see if a connection's edges have a length; if false hide the grid.
*/
export function hideGrid(artworksConnection): boolean {
return Boolean(get(artworksConnection, p => !p.edges.length))
return Boolean(get(artworksConnection, p => !p?.edges.length))
}

const populatedGrids = (grids: OtherWorks_artwork["contextGrids"]) => {
Expand Down

0 comments on commit d9747fd

Please sign in to comment.