Skip to content

Commit

Permalink
Opprydning
Browse files Browse the repository at this point in the history
  • Loading branch information
betsytraran committed Sep 20, 2023
1 parent 1008623 commit 0b22969
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ export const getRandomValue = (liste: Array<any>) => {
if (!liste || liste?.length < 1) {
return null
}
const random = Math.floor(Math.random() * liste.length)
const random = Math.floor(Math.random() * liste.length) //NOSONAR not used in secure contexts
return liste[random]
}
4 changes: 2 additions & 2 deletions apps/dolly-frontend/src/main/js/src/pages/gruppe/Gruppe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ export default ({
sideStoerrelse,
update,
)
// console.log('bestillingerById: ', bestillingerById) //TODO - SLETT MEG

const {
gruppe,
identer,
loading: loadingGruppe,
// @ts-ignore
} = useGruppeById(gruppeId, sidetall, sideStoerrelse, false, sorting?.kolonne, sorting?.retning)
const [startBestillingAktiv, visStartBestilling, skjulStartBestilling] = useBoolean(false)
// console.log('gruppe: ', gruppe) //TODO - SLETT MEG

const dispatch = useDispatch()
const navigate = useNavigate()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export default function PersonListe({
const [identListe, setIdentListe] = useState([])
const dispatch = useDispatch()
const { bestillingerById: bestillingStatuser } = useBestillingerGruppe(gruppeInfo.id)
// console.log('bestillingerById: ', bestillingerById) //TODO - SLETT MEG

const personListe = useMemo(
() => sokSelector(selectPersonListe(identer, bestillingStatuser, fagsystem), search),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ export default ({
ident={ident}
tilgjengeligMiljoe={tilgjengeligMiljoe}
/>
{/*<SykemeldingVisning data={SykemeldingVisning.filterValues(bestillingListe, ident.ident)} />*/}
<SykemeldingVisning
data={sykemeldingData}
loading={loadingSykemeldingData}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const useIkkeFerdigBestillingerGruppe = (
? getIkkeFerdigBestillingerGruppeUrl(gruppeId) + updateParam
: getBestillingerGruppeUrl(gruppeId) + `?page=${sidetall}&pageSize=${sideStoerrelse}`
const { data, isLoading, error } = useSWR<Bestilling[], Error>(url, fetcher)
// console.log('data xxxx: ', data) //TODO - SLETT MEG

const bestillingerSorted = data
?.sort((bestilling, bestilling2) => (bestilling.id < bestilling2.id ? 1 : -1))
.reduce((acc: { [key: string]: Bestilling }, curr) => ((acc[curr.id] = curr), acc), {})
Expand Down Expand Up @@ -140,7 +140,7 @@ export const useBestillingById = (
dedupingInterval: autoRefresh ? 1000 : null,
},
)
// console.log('data xxx: ', data) //TODO - SLETT MEG

return {
bestilling: data,
loading: isLoading,
Expand Down

0 comments on commit 0b22969

Please sign in to comment.