Skip to content

Commit 24abefe

Browse files
更新 DesignerContext.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3d1dd84 commit 24abefe

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

packages/designer/src/context/DesignerContext.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,6 @@ export const DesignerProvider: React.FC<DesignerProviderProps> = ({
244244
addToHistory(withIds);
245245
}, [addToHistory]);
246246

247-
const updateSchemaWithHistory = useCallback((newSchema: SchemaNode) => {
248-
setSchemaState(newSchema);
249-
addToHistory(newSchema);
250-
}, [addToHistory]);
251-
252247
const addNode = useCallback((parentId: string | null, node: SchemaNode, index?: number) => {
253248
const nodeWithId = ensureNodeIds(node);
254249

0 commit comments

Comments
 (0)