Update SortableItemContext.tsx

This commit is contained in:
Nate Kelley 2025-08-07 23:43:56 -06:00
parent 0455da1455
commit f38d4b0ac1
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import type { DraggableAttributes, DraggableSyntheticListeners } from '@dnd-kit/core';
import { createContext } from 'react';
import { createContext } from 'react';
interface Context {
attributes: DraggableAttributes;

View File

@ -18,7 +18,6 @@ export const insertMetric = (editor: PlateEditor, options?: InsertNodesOptions)
// Small timeout to ensure the node is properly inserted and rendered
setTimeout(() => {
const plugin = editor.getPlugin(MetricPlugin);
console.log(plugin.api);
plugin.api.metric.openAddMetricModal();
}, 50);
};