From 36753e222fdb2ae0dd3625ce57444f49fc5814f7 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Mon, 8 Apr 2024 21:07:54 +0300 Subject: [PATCH] =?UTF-8?q?Revert=20"=D0=9C=D0=B0=D0=BA=D1=81.=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D1=81=D1=82=D1=80.=20=D1=81=D0=BA=D0=BE=D1=80?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D1=8C=20(=D0=BF=D1=80=D0=B8=20=D0=9F=D0=A1?= =?UTF-8?q?=D0=9C)"=20tbxMaxSpeed=20=D0=B4=D0=BE=D0=BB=D0=B6=D0=BD=D0=B0?= =?UTF-8?q?=20=D0=B1=D1=8B=D1=82=D1=8C=20=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B5=200"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 61c6f41635f4645e4f570c28d0a6e5c6c3a60671. --- apps/web/process/leasing-object/validation.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/apps/web/process/leasing-object/validation.ts b/apps/web/process/leasing-object/validation.ts index abd36da..beec27d 100644 --- a/apps/web/process/leasing-object/validation.ts +++ b/apps/web/process/leasing-object/validation.ts @@ -161,17 +161,6 @@ export function createValidationSchema({ apolloClient }: ValidationContext) { path: ['selectLeaseObjectCategory'], }); } - - if ( - evo_leasingobject_type?.evo_id && - ['6', '9', '10'].includes(evo_leasingobject_type?.evo_id) - ) { - ctx.addIssue({ - code: z.ZodIssueCode.custom, - message: 'Значение поля должно быть больше 0', - path: ['tbxMaxSpeed'], - }); - } } } );