Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
paales committed Feb 27, 2025
1 parent adb26f4 commit 1e64170
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export function useAttributesForm<
})

return useMemo(() => {
const items = (data?.attributesForm.items ?? [])
const items = (data?.attributesForm?.items ?? [])
.filter(nonNullable)
.filter((item) => !config.exclude?.includes(item.code))
.map((item) => ({
Expand Down Expand Up @@ -252,7 +252,7 @@ export function useAttributesForm<
config.typename ? item.__typename === config.typename : true,
)
.map((attribute) => customizeAttributes?.(attribute) || attribute)
}, [data?.attributesForm.items, config, customizeAttributes])
}, [data?.attributesForm?.items, config, customizeAttributes])
}

export function extractAttributes(
Expand Down

0 comments on commit 1e64170

Please sign in to comment.