deco-cx / deco-cx/apps

Empty product array on "page.empty_cart" generate a invalid json schema

Open
#990 1 comment 0 reactions 0 assignees View on GitHub
triage
Dominant language
TypeScript
Stars
28
Forks
30
Avg merge
1d 16h
Merged PRs (30d)
4

Description

`product: []` creates a `items: []` property type, which is invalid.

we may cast it to an object so it will generate a valid json such as `items: {}`.

https://github.com/deco-cx/apps/blob/0246e5e229059466bae4f718d4225229db0404fe/vtex/actions/analytics/sendEvent.ts#L18

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.