Skip to content

Commit

Permalink
remove deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxrider committed May 24, 2024
1 parent 013e89f commit 57ae9f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import VerticalSlider from './sliders';
import SwitchLabels from './switches';
import Inputs from './inputs';
import Grid from '@mui/material/Grid';
import { toArray, map } from '@lumino/algorithm';
import { map } from '@lumino/algorithm';
import Typography from '@mui/material/Typography';

/**
Expand Down Expand Up @@ -59,14 +59,14 @@ export class CounterWidget extends ReactWidget {
}

getFileList(types: string[]): string[] {
const a = toArray(this.browserFactory?.model.items());
const a = [...this.browserFactory?.model.items()];
const b = a.filter(
item =>
item.type === 'file' &&
types.includes(item.name.split('.').pop() as string)
);
const c = map(b, x => x.name);
return toArray(c);
return [...c];
}

updateDatasource() {
Expand Down

0 comments on commit 57ae9f9

Please sign in to comment.