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(OUT-1284): marketplace app support object for customField value #77

Conversation

makeitraina
Copy link
Member

@makeitraina makeitraina commented Jan 15, 2025

Task/Ticket

[IU is receiving an error for Client Home app](Task Link)

Root Cause

We updated how custom fields value can be returned. Previously it was either a string or array and now it can also be an object. This was causing a zodSchema defined in client home to fail and caused the page to crash.

The main changes are

Update the union in the zod schema to allow objects along side string and array.

I didn't spent too much time debugging this. Im going to open a sub-ticket for Outside to make this more robust. The whole app should not crash in cases like this.

Copy link

vercel bot commented Jan 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
client-home ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2025 8:08pm

Copy link

linear bot commented Jan 15, 2025

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@MysteryMachine
Copy link

I think we have a stricter schema in our codebase if there's any interest in copying over, keeping it synced will be a pain but hopefully we dont have schema changes super regularly

@makeitraina makeitraina merged commit 4b3001f into main Jan 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants