diff --git a/apps/web/components/Objects/Activities/DynamicCanva/AI/AICanvaToolkit.tsx b/apps/web/components/Objects/Activities/DynamicCanva/AI/AICanvaToolkit.tsx index 8a9bb0c9..ff9f88e2 100644 --- a/apps/web/components/Objects/Activities/DynamicCanva/AI/AICanvaToolkit.tsx +++ b/apps/web/components/Objects/Activities/DynamicCanva/AI/AICanvaToolkit.tsx @@ -163,7 +163,9 @@ function AIActionButton(props: { }) await dispatchAIChatBot({ type: 'setIsWaitingForResponse' }) const response = await startActivityAIChatSession( - message, access_token + message, + access_token, + props.activity.activity_uuid ) if (response.success == false) { await dispatchAIChatBot({ type: 'setIsNoLongerWaitingForResponse' }) diff --git a/apps/web/components/Objects/Editor/Extensions/NoTextInput/NoTextInput.tsx b/apps/web/components/Objects/Editor/Extensions/NoTextInput/NoTextInput.tsx index fcaf1752..3fd782a3 100644 --- a/apps/web/components/Objects/Editor/Extensions/NoTextInput/NoTextInput.tsx +++ b/apps/web/components/Objects/Editor/Extensions/NoTextInput/NoTextInput.tsx @@ -9,19 +9,8 @@ export const NoTextInput = Extension.create({ new Plugin({ key: new PluginKey('noTextInput'), filterTransaction: (transaction) => { - // If the transaction is adding text, stop it - return ( - !transaction.docChanged || - transaction.steps.every((step) => { - const { slice } = step.toJSON() - return ( - !slice || - !slice.content.some( - (node: { type: string }) => node.type === 'text' - ) - ) - }) - ) + // Block all content-changing transactions + return !transaction.docChanged }, }), ]