mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-19 21:04:33 +08:00
🐛 Fix auto gen groups not instantly updating
This commit is contained in:
parent
57f7228c0f
commit
d23658d1d6
@ -145,7 +145,9 @@ export const DrawingEdge = ({ connectingIds }: Props) => {
|
||||
credentialsId: workspace?.settings?.groupTitlesAutoGeneration
|
||||
?.credentialsId as string,
|
||||
typebotId: typebot.id,
|
||||
groupContent: JSON.stringify(group),
|
||||
groupContent: JSON.stringify({
|
||||
blocks: group.blocks.map(({ id, outgoingEdgeId, ...rest }) => rest),
|
||||
}),
|
||||
});
|
||||
|
||||
updateGroup(groupIndex, { title: result.title });
|
||||
|
||||
@ -87,6 +87,10 @@ export const GroupNode = ({ group, groupIndex }: Props) => {
|
||||
);
|
||||
}, [connectingIds, group.id]);
|
||||
|
||||
useEffect(() => {
|
||||
if (group.title !== groupTitle) setGroupTitle(group.title);
|
||||
}, [group.title]);
|
||||
|
||||
const handleTitleSubmit = (title: string) =>
|
||||
updateGroup(groupIndex, { title });
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user