Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-phan committed Dec 10, 2023
1 parent 69fba51 commit 8291bf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export type InputType =
| "text"
| "textarea"
| "toggle-group"
| "swatches"

declare global {
interface Window {
Expand Down
1 change: 0 additions & 1 deletion packages/hydrogen/src/hooks/use-pixel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useLocation } from '@remix-run/react'
let fetchingKey = ''

export function usePixel(context: WeaverseHydrogen) {
// TODO: create a post xhr request to the pixel endpoint
let { projectId, pageId, weaverseHost, isDesignMode } = context
let location = useLocation()

Expand Down
6 changes: 2 additions & 4 deletions packages/hydrogen/src/weaverse-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ export class WeaverseClient {
}
if (page?.items) {
let items = page.items
page.items = await Promise.all(
items.map((item) => this.execComponentLoader(item)),
)
page.items = await Promise.all(items.map(this.execComponentLoader))
}
let data: WeaverseLoaderData = {
page,
Expand Down Expand Up @@ -226,7 +224,7 @@ export class WeaverseClient {
execComponentLoader = async (item: HydrogenComponentData) => {
let { data = {}, type, id } = item
let schema = this.components.find(({ schema }) => schema?.type === type)
let { loader } = schema || {}
let loader = schema?.loader
if (loader && typeof loader === 'function') {
try {
return {
Expand Down

0 comments on commit 8291bf1

Please sign in to comment.