Skip to content

Commit

Permalink
Merge branch 'vaash/2687' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
VarunVAshrit committed Dec 26, 2024
2 parents 09aaed9 + 44be986 commit 76b812e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 21 deletions.
2 changes: 1 addition & 1 deletion sanityv3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@types/react-dom": "^18.0.5",
"@types/styled-components": "^5.1.26",
"eslint": "^8.6.0",
"nanoid": "^5.0.4",
"nanoid": "^5.0.9",
"prettier": "^2.8.3",
"typescript": "^4.0.0"
}
Expand Down
10 changes: 5 additions & 5 deletions sanityv3/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions search/IndexArchivedNews/algolia.ts

This file was deleted.

2 changes: 1 addition & 1 deletion search/IndexArchivedNews/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as T from 'fp-ts/lib/Task'
import { init, getClient, getFileList, copyFile } from './blobStorage'
import { ContainerClient } from '@azure/storage-blob'
import { update, generateIndexName, getEnvironment, languageFromIso, languageOrDefault, NewsIndex } from '../common'
import { indexSettings } from './algolia'
import { indexSettings } from '../IndexSanityContent/common/news/algolia'
import { mapData } from './mapper'
import { loadJson } from './fileStorage'

Expand Down
4 changes: 1 addition & 3 deletions web/templates/magazine/Magazineroom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ const MagazineRoom = ({ pageData, slug }: MagazineIndexTemplateProps) => {
const resultsRef = useRef<HTMLDivElement>(null)
const [isLoading, setIsLoading] = useState(false)
const router = useRouter()
const parentSlug =
(router.locale !== router.defaultLocale ? `/${router.locale}` : '') +
router.asPath.substring(router.asPath.indexOf('/'), router.asPath.lastIndexOf('/'))
const parentSlug = `${router.locale !== router.defaultLocale ? `/${router.locale}` : ''}${router.pathname}`

const magazineList = useMemo(() => magazineArticles, [magazineArticles])
const pagedList = useMemo(() => chunkArray(magazineList, 12), [magazineList])
Expand Down

0 comments on commit 76b812e

Please sign in to comment.