Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix: ai edit animation for edit with ai button (#5225)

Wolf Mermelstein2d33a2463bfa
diff --git a/apps/web/src/features/block-md/component/DocumentAiEditBar.tsx b/apps/web/src/features/block-md/component/DocumentAiEditBar.tsx
index 1abd08049a..a3c19fc756 100644
--- a/apps/web/src/features/block-md/component/DocumentAiEditBar.tsx
+++ b/apps/web/src/features/block-md/component/DocumentAiEditBar.tsx
@@ -1,4 +1,3 @@
-import { applyAiOps } from '@block-md/ai-edit/applyAiOps';
import { mdStore } from '@block-md/signal/markdownBlockData';
import { buildChatEditor } from '@core/component/AI/component/input/buildChatEditor';
import { MarkdownShell } from '@core/component/LexicalMarkdown/builder/MarkdownShell';
@@ -43,11 +42,6 @@ export function DocumentAiEditBar(props: { documentId: string }) {
requestAiEdit({
documentId: props.documentId,
prompt: value,
- onOps: (ops) => {
- const target = md.editor;
- const mapping = md.mapping;
- if (target && mapping) applyAiOps(target, mapping, ops);
- },
})
.then((result) => {
if (result === 'failed') toast.failure('AI edit failed');