mirror of
https://github.com/hexastack/hexabot
synced 2024-12-02 00:54:56 +00:00
fix: use title as id for menu
This commit is contained in:
parent
28dc3e0e4f
commit
cc6e50e5d0
@ -131,10 +131,10 @@ export const PostbackInput = ({ value, onChange }: PostbackInputProps) => {
|
||||
[block?.previousBlocks],
|
||||
);
|
||||
const menuOptions = menu
|
||||
.filter((menu) => menu.payload)
|
||||
.map(({ payload, title }) => ({
|
||||
id: payload as string,
|
||||
label: title as string,
|
||||
.filter(({ payload }) => payload)
|
||||
.map(({ title }) => ({
|
||||
id: title,
|
||||
label: title,
|
||||
group: "menu",
|
||||
}));
|
||||
const contentOptions = useMemo(
|
||||
|
Loading…
Reference in New Issue
Block a user