Notification updates
This commit is contained in:
@@ -21,7 +21,7 @@ export type CatalogFormValues = {
|
||||
trimId?: string;
|
||||
displacement?: string;
|
||||
cylinders?: number;
|
||||
fuel_type?: string;
|
||||
fuelType?: string;
|
||||
};
|
||||
|
||||
export const makeSchema = z.object({
|
||||
@@ -63,7 +63,7 @@ export const engineSchema = z.object({
|
||||
.positive('Cylinders must be positive')
|
||||
.optional()
|
||||
),
|
||||
fuel_type: z.string().optional(),
|
||||
fuelType: z.string().optional(),
|
||||
});
|
||||
|
||||
export const getSchemaForLevel = (level: CatalogLevel) => {
|
||||
@@ -114,7 +114,7 @@ export const buildDefaultValues = (
|
||||
trimId: String((entity as CatalogEngine).trimId),
|
||||
displacement: (entity as CatalogEngine).displacement ?? undefined,
|
||||
cylinders: (entity as CatalogEngine).cylinders ?? undefined,
|
||||
fuel_type: (entity as CatalogEngine).fuel_type ?? undefined,
|
||||
fuelType: (entity as CatalogEngine).fuelType ?? undefined,
|
||||
};
|
||||
default:
|
||||
return {};
|
||||
@@ -142,7 +142,7 @@ export const buildDefaultValues = (
|
||||
name: '',
|
||||
trimId: context.trim?.id ? String(context.trim.id) : '',
|
||||
displacement: '',
|
||||
fuel_type: '',
|
||||
fuelType: '',
|
||||
};
|
||||
case 'makes':
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user