Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
B legger til ekstra sjekk på feature-toggles for å unngå feil feilmel…
Browse files Browse the repository at this point in the history
…ding
  • Loading branch information
jrtm committed Oct 11, 2021
1 parent d146ca6 commit 3a36c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/komponenter/initialdata/hent-initial-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function videresendTilNyIngress() {
export class HentInitialData extends React.Component<Props> {
componentDidMount() {
this.props.hentFeatureToggle().then((featureToggles) => {
if ((featureToggles as FeatureToggleData)["arbeidssokerregistrering.ny-ingress"]) {
if (featureToggles && (featureToggles as FeatureToggleData)["arbeidssokerregistrering.ny-ingress"]) {
videresendTilNyIngress();
}

Expand Down

0 comments on commit 3a36c49

Please sign in to comment.