fix: resolve block list bug

This commit is contained in:
yassinedorbozgithub 2025-05-21 18:02:08 +01:00
parent fd36647cea
commit 6f215afd05
2 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,7 @@ const postBackButtonSchema = z.object({
const webUrlButtonSchema = z.object({
type: z.literal(ButtonType.web_url),
title: z.string(),
url: z.string().url(),
url: z.union([z.string().url(), z.literal('')]),
messenger_extensions: z.boolean().optional(),
webview_height_ratio: z.enum(['compact', 'tall', 'full']).optional(),
});

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2024 Hexastack. All rights reserved.
* Copyright © 2025 Hexastack. All rights reserved.
*
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
@ -128,6 +128,7 @@ const ListMessageForm = () => {
(value && value >= 2 && value <= 4) ||
t("message.invalid_list_limit"),
},
valueAsNumber: true,
})}
error={errors?.options?.["content"]?.["limit"]}
helperText={errors?.options?.["content"]?.["limit"]?.message}