-
Notifications
You must be signed in to change notification settings - Fork 5
Los app #6543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
...sleder/src/nokkeltall/fordelingAvBehandlingstype/FordelingAvBehandlingstypePanel.stories.tsx
Fixed
Show fixed
Hide fixed
apps/los-avdelingsleder/src/nokkeltall/tilBehandling/TilBehandlingPanel.stories.tsx
Fixed
Show fixed
Hide fixed
msw: { | ||
handlers: [ | ||
http.get(LosUrl.KODEVERK_LOS, () => HttpResponse.json(alleKodeverkLos)), | ||
http.get(LosUrl.HENT_OPPGAVER_FOR_AVDELING.replace('ø', '%C3%B8'), () => |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 days ago
To fix the problem, we should ensure that all occurrences of 'ø'
in the string are replaced with '%C3%B8'
. The best way to do this in JavaScript is to use a regular expression with the global flag: .replace(/ø/g, '%C3%B8')
. This will replace every occurrence of 'ø'
in the string, not just the first. The change should be made on line 57 of apps/fp-avdelingsleder/src/nokkeltall/fordelingAvBehandlingstype/FordelingAvBehandlingstypePanel.stories.tsx
. No new imports or definitions are needed.
-
Copy modified line R57
@@ -54,7 +54,7 @@ | ||
msw: { | ||
handlers: [ | ||
http.get(LosUrl.KODEVERK_LOS, () => HttpResponse.json(alleKodeverkLos)), | ||
http.get(LosUrl.HENT_OPPGAVER_FOR_AVDELING.replace('ø', '%C3%B8'), () => | ||
http.get(LosUrl.HENT_OPPGAVER_FOR_AVDELING.replace(/ø/g, '%C3%B8'), () => | ||
HttpResponse.json(OPPGAVER_FOR_AVDELING), | ||
), | ||
], |
msw: { | ||
handlers: [ | ||
http.get(LosUrl.KODEVERK_LOS, () => HttpResponse.json(alleKodeverkLos)), | ||
http.get(LosUrl.HENT_OPPGAVER_PER_DATO.replace('ø', '%C3%B8'), () => HttpResponse.json(OPPGAVER_PER_DATO)), |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 days ago
To fix the problem, we should ensure that all occurrences of 'ø'
in LosUrl.HENT_OPPGAVER_PER_DATO
are replaced with '%C3%B8'
. The best way to do this in JavaScript is to use the replace
method with a regular expression and the global flag: .replace(/ø/g, '%C3%B8')
. This change should be made directly on line 65 of apps/fp-avdelingsleder/src/nokkeltall/tilBehandling/TilBehandlingPanel.stories.tsx
. No new imports or dependencies are required, as this uses built-in JavaScript functionality.
-
Copy modified line R65
@@ -62,7 +62,7 @@ | ||
msw: { | ||
handlers: [ | ||
http.get(LosUrl.KODEVERK_LOS, () => HttpResponse.json(alleKodeverkLos)), | ||
http.get(LosUrl.HENT_OPPGAVER_PER_DATO.replace('ø', '%C3%B8'), () => HttpResponse.json(OPPGAVER_PER_DATO)), | ||
http.get(LosUrl.HENT_OPPGAVER_PER_DATO.replace(/ø/g, '%C3%B8'), () => HttpResponse.json(OPPGAVER_PER_DATO)), | ||
], | ||
}, | ||
}, |
|
No description provided.