Skip to content

Commit

Permalink
Fiks lintefeil
Browse files Browse the repository at this point in the history
Merkelig logikk-uttrykk førte til feil i typescript-kompilering
  • Loading branch information
Oddsor committed Oct 18, 2024
1 parent ad76705 commit ddc1cbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const TiltakstypeFilterGammel: FunctionComponent<FiltreringMedBeslutterProps> =

return (
<Filter tittel="Tiltakstype">
<RadioGroup legend="" size="small" value={filtre.tiltakstype || ('' && filtre.tiltakstype === undefined)}>
<RadioGroup legend="" size="small" value={filtre.tiltakstype || ''}>
{tiltakstyper.map((tiltakstype: OptionProps, index: number) => (
<Radio
key={index}
Expand Down
7 changes: 1 addition & 6 deletions src/AvtaleOversikt/Filtrering/StatusFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ const StatusFilter: FunctionComponent = () => {

return (
<Filter tittel="Status">
<RadioGroup
legend=""
style={{ marginBottom: '0' }}
size="small"
value={filtre.status || ('' && filtre.status === undefined)}
>
<RadioGroup legend="" style={{ marginBottom: '0' }} size="small" value={filtre.status || ''}>
{alleStatuser.map((soketype: SokeType, index: number) => (
<Radio
key={index}
Expand Down
2 changes: 1 addition & 1 deletion src/AvtaleOversikt/Filtrering/TiltakstypeFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const TiltakstypeFilter: FunctionComponent<FiltreringMedBeslutterProps> = (props

return (
<Filter tittel="Tiltakstype">
<RadioGroup legend="" size="small" value={filtre.tiltakstype || ('' && filtre.tiltakstype === undefined)}>
<RadioGroup legend="" size="small" value={filtre.tiltakstype || ''}>
{tiltakstyper.map((tiltakstype: OptionProps, index: number) => (
<Radio
key={index}
Expand Down

0 comments on commit ddc1cbc

Please sign in to comment.