mirror of https://github.com/buster-so/buster.git
Update SortableItemContext.tsx
This commit is contained in:
parent
0455da1455
commit
f38d4b0ac1
|
@ -1,5 +1,5 @@
|
|||
import type { DraggableAttributes, DraggableSyntheticListeners } from '@dnd-kit/core';
|
||||
import { createContext } from 'react';
|
||||
import { createContext } from 'react';
|
||||
|
||||
interface Context {
|
||||
attributes: DraggableAttributes;
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue