Skip to content

Commit a264d35

Browse files
fix: use parameter not hardcoded value
1 parent eaff1ae commit a264d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/action_menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export class ActionMenu {
219219
* @returns the action.
220220
*/
221221
private getContextMenuAction(id: string) {
222-
const item = ContextMenuRegistry.registry.getItem('insert');
222+
const item = ContextMenuRegistry.registry.getItem(id);
223223
if (!item) {
224224
throw new Error(`can't find context menu item ${id}`);
225225
}

0 commit comments

Comments
 (0)