Skip to content

Commit 6ec1fcf

Browse files
author
markzegarelli
committed
Merge branch 'develop' into crossingminds
2 parents 84c134c + f015001 commit 6ec1fcf

File tree

11 files changed

+462
-394
lines changed

11 files changed

+462
-394
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ incremental: true
88

99
permalink: /:categories/:title/
1010

11+
include: ['_redirects']
12+
1113
exclude: ['js', '_site', '*.sketch']
1214
# Build settings
1315
os_links: true

scripts/catalog_papi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const updateSources = async () => {
153153
let categories = new Set()
154154
let sourceCategories = []
155155

156-
while (nextPageToken !== null) {
156+
while (nextPageToken !== undefined) {
157157
const res = await getCatalog(`${PAPI_URL}/catalog/sources/`, nextPageToken)
158158
sources = sources.concat(res.data.sourcesCatalog)
159159
nextPageToken = res.data.pagination.next
@@ -311,7 +311,7 @@ const updateDestinations = async () => {
311311
let categories = new Set()
312312
let nextPageToken = "MA=="
313313

314-
while (nextPageToken !== null) {
314+
while (nextPageToken !== undefined) {
315315
const res = await getCatalog(`${PAPI_URL}/catalog/destinations/`, nextPageToken)
316316
destinations = destinations.concat(res.data.destinationsCatalog)
317317
nextPageToken = res.data.pagination.next
@@ -479,7 +479,7 @@ const updateWarehouses = async () => {
479479
let warehousesUpdated = []
480480

481481

482-
while (nextPageToken !== null) {
482+
while (nextPageToken !== undefined) {
483483
const res = await getCatalog(`${PAPI_URL}/catalog/warehouses/`, nextPageToken)
484484
warehouses = warehouses.concat(res.data.warehousesCatalog)
485485
nextPageToken = res.data.pagination.next

src/_data/catalog/destination_categories.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT
2-
# destination categories last updated 2022-03-08
2+
# destination categories last updated 2022-03-17
33
items:
44
- display_name: A/B Testing
55
slug: a-b-testing

0 commit comments

Comments
 (0)