Skip to main content
Sign in
Snippets Groups Projects
Commit 4169b58e authored by Toufic Batache's avatar Toufic Batache
Browse files

Fix mobile "law" tab doesn't work when in budget impacts

parent 38f33d6e
No related branches found
No related tags found
No related merge requests found
Pipeline #11888 passed
......@@ -16,14 +16,12 @@ export function newSimulationUrl(displayMode: DisplayMode): string {
const parametersQuery: URLSearchParams = new URLSearchParams()
if (displayMode.budget) {
parametersQuery.append("budget", "true")
delete displayMode.mobileLaw
}
if (displayMode.edit !== undefined) {
parametersQuery.append("edit", displayMode.edit.toString())
}
if (displayMode.mobileLaw) {
parametersQuery.append("law", "true")
delete displayMode.budget
}
if (
displayMode.testCasesIndex !== undefined &&
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment