Skip to content

Commit 8d8d242

Browse files
committed
Fixed Bug#35917958 - DROP EVENT DOES NOT WORK
The issue was the type of the object parameter in the event. Setting the right object type and properly accessing the dropItem() fixed the issue. Change-Id: I3d1cb9bc4671f9f7acac32a841cdc048b2b0527e
1 parent f7c2e5e commit 8d8d242

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gui/extension/src/DBEditorCommandHandler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import { ConnectionsTreeBaseItem } from "./tree-providers/ConnectionsTreeProvide
4949
import {
5050
CdmSchemaGroupMember,
5151
ConnectionsTreeDataModelEntry, ICdmConnectionEntry, ICdmRestDbObjectEntry, ICdmRoutineEntry, ICdmSchemaEntry,
52-
ICdmTableEntry, ICdmTriggerEntry,
52+
ICdmTableEntry, ICdmTriggerEntry, ICdmEventEntry,
5353
} from "./tree-providers/ConnectionsTreeProvider/ConnectionsTreeDataModel.js";
5454
import {
5555
ConnectionsTreeDataProvider,
@@ -358,8 +358,8 @@ export class DBEditorCommandHandler {
358358
entry?.treeItem.dropItem();
359359
}));
360360

361-
context.subscriptions.push(commands.registerCommand("msg.dropEvent", (item?: SchemaEventTreeItem) => {
362-
item?.dropItem();
361+
context.subscriptions.push(commands.registerCommand("msg.dropEvent", (item?: ICdmEventEntry) => {
362+
item?.treeItem?.dropItem();
363363
}));
364364

365365
context.subscriptions.push(commands.registerCommand("msg.defaultConnection",

0 commit comments

Comments
 (0)