Skip to content

Commit

Permalink
Filter null variants
Browse files Browse the repository at this point in the history
  • Loading branch information
peytonhobson-cm committed Apr 18, 2024
1 parent 62729db commit 47a46a9
Show file tree
Hide file tree
Showing 4 changed files with 5,160 additions and 2,525 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/oxygen-deployment-1540413.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
check-latest: true

- name: Get yarn cache directory
Expand Down
11 changes: 7 additions & 4 deletions app/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,13 @@ export const loader = async ({context, request}: LoaderArgs) => {
backgroundImageUrl: HERO_IMAGES[
Math.floor(Math.random() * HERO_IMAGES.length)
] as string,
collectionsForCollections,
productVariantsForNewReleases,
productVariantsForOurFavorites,
productVariantsForRecommendations
collectionsForCollections: collectionsForCollections.filter(Boolean),
productVariantsForNewReleases:
productVariantsForNewReleases.filter(Boolean),
productVariantsForOurFavorites:
productVariantsForOurFavorites.filter(Boolean),
productVariantsForRecommendations:
productVariantsForRecommendations.filter(Boolean)
},
{
headers: {
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@crossingminds/tsconfig": "^0.1.3",
"@crossingminds/utils": "^0.2.1",
"@headlessui/react": "^1.7.14",
"@remix-run/css-bundle": "^1.15.0",
"@remix-run/react": "1.14.0",
"@remix-run/css-bundle": "1.15.0",
"@remix-run/react": "1.15.0",
"@shopify/cli": "3.29.0",
"@shopify/cli-hydrogen": "^4.0.9",
"@shopify/hydrogen": "^2023.1.6",
Expand All @@ -37,7 +37,7 @@
"zod": "^3.21.4"
},
"devDependencies": {
"@remix-run/dev": "1.14.0",
"@remix-run/dev": "1.15.0",
"@shopify/oxygen-workers-types": "^3.17.2",
"@shopify/prettier-config": "^1.1.2",
"@types/eslint": "^8.4.10",
Expand All @@ -49,7 +49,7 @@
"eslint-import-resolver-typescript": "^3.5.4",
"eslint-plugin-hydrogen": "0.12.2",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsdoc": "^40.1.1",
"eslint-plugin-jsdoc": "^48.2.3",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
Expand All @@ -59,7 +59,7 @@
"typescript": "^4.9.5"
},
"engines": {
"node": ">=16.13"
"node": ">=20"
},
"husky": {
"hooks": {
Expand All @@ -69,4 +69,4 @@
"lint-staged": {
"*.{js,jsx,ts,tsx}": "yarn run lint:fix"
}
}
}

0 comments on commit 47a46a9

Please sign in to comment.