Skip to content

Commit 818a11b

Browse files
committed
Appease linter
Signed-off-by: Itay Dafna <[email protected]>
1 parent dd436c2 commit 818a11b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

js/feathergrid.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,11 @@ export class FeatherGrid extends Widget {
286286
messageHook(handler: IMessageHandler, msg: Message): boolean {
287287
if (handler === this.grid.viewport) {
288288
// //@ts-ignore added so we don't have to add basicmousehandler.ts fork
289-
const mouseHandler = (this.grid
290-
.mouseHandler as unknown) as FeatherGridMouseHandler;
289+
const mouseHandler = this.grid
290+
.mouseHandler as unknown as FeatherGridMouseHandler;
291291

292292
if (msg.type === 'column-resize-request' && mouseHandler.mouseIsDown) {
293-
const resizeMsg = (msg as unknown) as FeatherGridColumnResizeMessage;
293+
const resizeMsg = msg as unknown as FeatherGridColumnResizeMessage;
294294
const columnName: string = this.dataModel.columnIndexToName(
295295
resizeMsg.index,
296296
resizeMsg.region,
@@ -1019,7 +1019,8 @@ export class FeatherGrid extends Widget {
10191019
iconClass:
10201020
'ipydatagrid-filterMenuIcon ipydatagrid-filterMenuIcon-sortAsc',
10211021
execute: (args): void => {
1022-
const cellClick: FeatherGridContextMenu.CommandArgs = args as FeatherGridContextMenu.CommandArgs;
1022+
const cellClick: FeatherGridContextMenu.CommandArgs =
1023+
args as FeatherGridContextMenu.CommandArgs;
10231024
const colIndex = this._dataModel.getSchemaIndex(
10241025
cellClick.region,
10251026
cellClick.columnIndex,
@@ -1037,7 +1038,8 @@ export class FeatherGrid extends Widget {
10371038
iconClass:
10381039
'ipydatagrid-filterMenuIcon ipydatagrid-filterMenuIcon-sortDesc',
10391040
execute: (args) => {
1040-
const cellClick: FeatherGridContextMenu.CommandArgs = args as FeatherGridContextMenu.CommandArgs;
1041+
const cellClick: FeatherGridContextMenu.CommandArgs =
1042+
args as FeatherGridContextMenu.CommandArgs;
10411043
const colIndex = this._dataModel.getSchemaIndex(
10421044
cellClick.region,
10431045
cellClick.columnIndex,
@@ -1067,8 +1069,8 @@ export class FeatherGrid extends Widget {
10671069
label: 'Clear Filters in All Columns',
10681070
mnemonic: -1,
10691071
execute: (args) => {
1070-
const activeTransforms: Transform.TransformSpec[] = this._dataModel
1071-
.activeTransforms;
1072+
const activeTransforms: Transform.TransformSpec[] =
1073+
this._dataModel.activeTransforms;
10721074
const newTransforms = activeTransforms.filter(
10731075
(val) => val.type !== 'filter',
10741076
);

0 commit comments

Comments
 (0)