mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Merge pull request #1028 from Hexastack/1027-bug---list-block
fix: resolve block list bug
This commit is contained in:
commit
1e36ed9653
@ -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(),
|
||||
});
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user