Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 3d objects are not showing on landing #3786

Merged
merged 1 commit into from
Aug 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions queries/rmrk/subsquid/lastNftListByEvent.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ query lastNftListByEvent($limit: Float!, $event: String!) {
issuer
currentOwner
metadata
animationUrl
image
collection: name
}
Expand Down
2 changes: 2 additions & 0 deletions utils/carousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
import { CarouselNFT } from '@/components/base/types'
import { processSingleMetadata } from '~/utils/cachingStrategy'
import { LastEvent } from '~/utils/types/types'
import { sanitizeIpfsUrl } from '@/components/rmrk/utils'
/**
* Format the data to fit with CarouselNFT[]
* Get cloudflare images
Expand Down Expand Up @@ -66,6 +67,7 @@ export const convertLastEventToNft = (e: LastEvent) => {
issuer: e.issuer,
currentOwner: e.currentOwner,
metadata: e.metadata,
animationUrl: sanitizeIpfsUrl(e.animationUrl),
meta: {
id: e.metadata,
image: e.image,
Expand Down
1 change: 1 addition & 0 deletions utils/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ export type LastEvent = {
currentOwner: string
metadata: string
image: string
animationUrl: string
}