From c96a7e000eb2f641e7fea60feeb67bd736de6dfc Mon Sep 17 00:00:00 2001 From: RabsRincon Date: Wed, 27 Apr 2022 10:18:25 +0200 Subject: [PATCH] Fix ts errors --- static/panes/tree.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/static/panes/tree.ts b/static/panes/tree.ts index 32e059979..53249372a 100644 --- a/static/panes/tree.ts +++ b/static/panes/tree.ts @@ -420,11 +420,12 @@ export class Tree { } private bindClickToOpenPane(dragSource, dragConfig) { - this.container.layoutManager - .createDragSource(dragSource, dragConfig.bind(this)) - ._dragListener.on('dragStart', () => { + (this.container.layoutManager.createDragSource(dragSource, dragConfig.bind(this)) as any)._dragListener.on( + 'dragStart', + () => { this.domRoot.find('.add-pane').dropdown('toggle'); - }); + } + ); dragSource.on('click', () => { this.hub.addInEditorStackIfPossible(dragConfig.bind(this)); @@ -513,7 +514,10 @@ export class Tree { this.languageBtn.prop('disabled', true); } - this.toggleCMakeButton = new Toggles(this.domRoot.find('.options'), state); + this.toggleCMakeButton = new Toggles( + this.domRoot.find('.options'), + state as unknown as Record + ); } private numberUsedLines() {