Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
davemarco committed Sep 12, 2024
1 parent 40d2058 commit 3ace3a9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions new-log-viewer/src/components/StatusBar/LogLevelFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ export default function LogLevelFilter () {
event: React.SyntheticEvent | null,
newValue: Array<string> | null
) => {
// convert strings to numbers.
// convert strings to numbers.
const selected: LOG_LEVEL[] = newValue ?
newValue.map((value) => Number(value)) :
[];

setSelectedLogLevels(selected);
changeLogLevelFilter(selected);
console.log(`You have chosen "${selected}"`);
};

return (
Expand All @@ -41,6 +40,8 @@ export default function LogLevelFilter () {
// Convert selected log levels to strings for value.
multiple
value={selectedLogLevels.map(String)}
sx={{minWidth: "13rem"}}
onChange={handleChange}

slotProps={{
listbox: {
Expand All @@ -49,8 +50,6 @@ export default function LogLevelFilter () {
},
},
}}
sx={{minWidth: "13rem"}}
onChange={handleChange}
>
{LOG_LEVEL_NAMES_LIST.map((logLevelName, index) => (
<Option
Expand Down

0 comments on commit 3ace3a9

Please sign in to comment.