Skip to content

Commit 53285ea

Browse files
🐛 fix: fix tab change when selecting version from non 0 tab
1 parent 71cf474 commit 53285ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/pages/zaaktype/zaaktype.action.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,10 @@ export async function selectZaaktypeVersionAction(
324324
action: TypedAction<"SELECT_VERSION", SelectZaaktypeVersionPayload>,
325325
) {
326326
const payload = action.payload;
327-
return redirect(`../${payload.uuid}`);
327+
328+
const url = new URL(window.location.href);
329+
url.searchParams.delete("editing");
330+
return redirect(`../${payload.uuid}${url.search}${url.hash}`);
328331
}
329332

330333
/**

0 commit comments

Comments
 (0)