mirror of https://github.com/buster-so/buster.git
Update SortableItemContext.tsx
This commit is contained in:
parent
0455da1455
commit
f38d4b0ac1
|
@ -18,7 +18,6 @@ export const insertMetric = (editor: PlateEditor, options?: InsertNodesOptions)
|
||||||
// Small timeout to ensure the node is properly inserted and rendered
|
// Small timeout to ensure the node is properly inserted and rendered
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const plugin = editor.getPlugin(MetricPlugin);
|
const plugin = editor.getPlugin(MetricPlugin);
|
||||||
console.log(plugin.api);
|
|
||||||
plugin.api.metric.openAddMetricModal();
|
plugin.api.metric.openAddMetricModal();
|
||||||
}, 50);
|
}, 50);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue