Merge pull request #1028 from Hexastack/1027-bug---list-block
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run

fix: resolve block list bug
This commit is contained in:
Med Marrouchi 2025-05-21 18:08:03 +01:00 committed by GitHub
commit 1e36ed9653
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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}