Skip to content

Commit

Permalink
Lint: VirkemiddelApi let til const
Browse files Browse the repository at this point in the history
  • Loading branch information
beeccy committed Jan 9, 2024
1 parent 69db3bb commit 368e69f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/frontend/src/api/VirkemiddelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const useVirkemiddel = (id: string, onlyLoadOnce?: boolean) => {
const isCreateNew = id === 'ny'
const [data, setData] = useState<Virkemiddel | undefined>(isCreateNew ? virkemiddelMapToFormVal({}) : undefined)

let load = () => {
const load = () => {
if (data && onlyLoadOnce) return
id && !isCreateNew && getVirkemiddel(id).then(setData)
}
Expand Down

0 comments on commit 368e69f

Please sign in to comment.