Skip to content

Commit

Permalink
fix linter issue
Browse files Browse the repository at this point in the history
Signed-off-by: Augustin Husson <[email protected]>
  • Loading branch information
Nexucis committed Feb 4, 2022
1 parent 5f8ec79 commit a64b514
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/ui/react-app/src/pages/targets/Filter.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('Filter', () => {
setFilter = sinon.spy();
setExpaned = sinon.spy();
filterWrapper = shallow(
<Filter filter={initialState} setFilter={setFilter} expanded={initialExpanded} setExpanded={setExpaned} />
<Filter filter={initialState} setFilter={setFilter} expanded={initialExpanded} setExpanded={setExpaned} />
);
});

Expand Down Expand Up @@ -89,7 +89,7 @@ describe('Filter', () => {
const filterCallback = sinon.spy();
const expandedCallback = sinon.spy();
const filterW = shallow(
<Filter filter={filter} setFilter={filterCallback} expanded={initial} setExpanded={expandedCallback} />
<Filter filter={filter} setFilter={filterCallback} expanded={initial} setExpanded={expandedCallback} />
);
const btn = filterW.find(Button).filterWhere((btn): boolean => btn.hasClass('expansion'));
expect(btn.children().text()).toEqual(text);
Expand All @@ -99,4 +99,4 @@ describe('Filter', () => {
});
});
});
});
});
2 changes: 1 addition & 1 deletion pkg/ui/react-app/src/thanos/pages/blocks/Blocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const BlocksContent: FC<{ data: BlockListProps }> = ({ data }) => {
const onChangeCompactionCheckbox = (target: EventTarget & HTMLInputElement) => {
setFilterCompaction(target.checked);
if (target.checked) {
let compactionLevel: number = parseInt(compactionLevelInput);
const compactionLevel: number = parseInt(compactionLevelInput);
setQuery({
'filter-compaction': target.checked,
'compaction-level': compactionLevel,
Expand Down

0 comments on commit a64b514

Please sign in to comment.