Merged in fix/LOY-519-handle-null-identifier (pull request #3329)
fix(LOY-519): handle null values on icon identifier * fix(LOY-519): handle null values on icon identifier Approved-by: Erik Tiekstra
This commit is contained in:
@@ -9,7 +9,10 @@ export const essentialsSchema = z.object({
|
||||
items: z.array(
|
||||
z.object({
|
||||
label: z.string(),
|
||||
icon_identifier: z.string(),
|
||||
icon_identifier: z
|
||||
.string()
|
||||
.nullish()
|
||||
.transform((identifier) => identifier ?? "discount-2-2"),
|
||||
description: z.string().nullish(),
|
||||
})
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user